Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) w
builder.Services.AddOpenTelemetry()
.WithMetrics(metrics =>
{
// Enable reporting metrics coming from the .NET MAUI SDK
metrics.AddMeter("Microsoft.Maui");
// Uncomment the following line to enable reporting metrics coming from the .NET MAUI SDK, this might cause a lot of added telemetry
//metrics.AddMeter("Microsoft.Maui");

metrics.AddHttpClientInstrumentation()
.AddRuntimeInstrumentation();
})
.WithTracing(tracing =>
{
// Enable reporting tracing coming from the .NET MAUI SDK
tracing.AddSource("Microsoft.Maui");
// Uncomment the following line to enable reporting tracing coming from the .NET MAUI SDK, this might cause a lot of added telemetry
//tracing.AddSource("Microsoft.Maui");

tracing.AddSource(builder.Environment.ApplicationName)
// Uncomment the following line to enable gRPC instrumentation (requires the OpenTelemetry.Instrumentation.GrpcNetClient package)
Expand Down
Loading