Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #67

Merged
merged 1 commit into from
Apr 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading