Skip to content

Commit

Permalink
Merge pull request #67 from wemogy/robinmanuelthiel-patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
robinmanuelthiel authored Apr 27, 2024
2 parents ed60a09 + 1ae7e17 commit 4c872bf
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 @@ -120,7 +120,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 @@ -145,6 +145,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 4c872bf

Please sign in to comment.