Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasjurasek committed Jun 12, 2024
1 parent 9909652 commit fe64069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2024-06-08-metrics-open-telemetry-net.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ layout: single
title: "Metrics in .NET with OpenTelemetry"
---

In the previous article, I wrote about [Dsitributed Tracing with OpenTelementry](https://tomasjurasek.github.io/2024/06/06/tracing-open-telemetry-net/).
In the previous article, I wrote about [Distributed Tracing with OpenTelementry](https://tomasjurasek.github.io/2024/06/06/tracing-open-telemetry-net/).
Now, let's write about [Metrics](https://opentelemetry.io/docs/specs/otel/metrics/).

## OpenTelementry .NET Metrics API
Expand Down Expand Up @@ -32,7 +32,7 @@ public static class ApplicationMetrics
{
private static readonly Meter meter = new Meter("applicationName", "1.0.0");
private static readonly Counter<int> applicationCounter = meter.CreateCounter<int>("applicationCounter");

public static void IncreaceCounter() => applicationCounter.Add(1);
}
```
Expand Down

0 comments on commit fe64069

Please sign in to comment.