Skip to content

Commit

Permalink
try add verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
XmasApple committed Sep 8, 2023
1 parent ec1bc9f commit 0dfeb66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slo/src/Jobs/Job.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ private async Task DoJob()
await PerformQuery();
sw.Stop();

Console.WriteLine($"job OK {sw.ElapsedMilliseconds}");
_latencySummary.WithLabels("ok").Observe(sw.ElapsedMilliseconds);
_okCounter.Inc();
_inFlightGauge.Dec();
Expand All @@ -79,6 +80,7 @@ private async Task DoJob()
{
Console.WriteLine(e);
sw.Stop();
Console.WriteLine($"job ERR {sw.ElapsedMilliseconds}");

_latencySummary.WithLabels("err").Observe(sw.ElapsedMilliseconds);
_notOkCounter.Inc();
Expand Down

0 comments on commit 0dfeb66

Please sign in to comment.