Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmanuelthiel authored Mar 2, 2024
1 parent b12914a commit 1ae7e17
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ app.AddDefaultSetup(options);
app.UseDefaultSetup(app.Environment, options);
```

## Monitoring
## Monitoring and Logging

We use Open Telemetry to provide monitoring for your application. The library provides a default setup for you, which you can use as is or extend to your needs. Open Telemetry interacts with the native Metrics and Tracing capabilities of ASP.NET.

Expand All @@ -128,6 +128,12 @@ public class Observability
// Create Counters, Histograms, etc. from that default Meter
public static readonly Counter<long> Pings = Meter.CreateCounter<long>("service_countername", description: "Total number of pings");
public static readonly Histogram<int> PingDelay = Meter.CreateHistogram<int>("service_histgramname", "ms", "Think time in ms for a ping");

public static void ConfigureStandardLogger(this ILoggingBuilder builder)
{
builder.ClearProviders();
builder.AddConsole();
}
}
```

Expand Down

0 comments on commit 1ae7e17

Please sign in to comment.