mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-18 04:38:09 +00:00
Initial Custom Metrics - Node & Task Heartbeat (#3082)
* Refactor logging to use and new function queue * Testing setup of custom metric. * Changing host.json * Updating log interface. * changes. * Fix encoding. * Updating. * Updating tests. * Adding metrics to program * Pushing latest changes. * Update interface references. * Removing string type. * Add string back. * Getting additional data for task heartbeat. * Removing additional fields. * Removing containers. * Cleaning up. * Adding feature flag. * Adding bicep changes. * Fixing tests. * Fixing test metrics. * Removing most of tests. * Telemetry Refact Round 2. * Updated metrics. * Remove custom metric function. * Syncing events.cs * Making optional. * Using events as metric dimensions. * Fixing ORM tests. * Remove metric records. * Removing bad test. * Remove testmetrics.' * Adding test back. * Improving custom dimensions serialization. * Update src/ApiService/ApiService/onefuzzlib/Metrics.cs Co-authored-by: Cheick Keita <kcheick@gmail.com> * Reverting change. --------- Co-authored-by: Cheick Keita <kcheick@gmail.com>
This commit is contained in:
committed by
GitHub
parent
64782d7e9b
commit
d84b72b5fd
@ -28,6 +28,11 @@ sealed class TestLogTracer : ILogTracer {
|
||||
_output.WriteLine($"[Event] [{evt}]");
|
||||
}
|
||||
|
||||
public void Metric(LogStringHandler metric, int value, IReadOnlyDictionary<string, string>? customDimensions) {
|
||||
// TODO: metrics
|
||||
_output.WriteLine($"[Event] [{metric}]");
|
||||
}
|
||||
|
||||
public void Exception(Exception ex, LogStringHandler message = $"", IReadOnlyDictionary<string, double>? metrics = null) {
|
||||
// TODO: metrics
|
||||
_output.WriteLine($"[Error] {message} {ex}");
|
||||
|
Reference in New Issue
Block a user