Skip to content

Commit

Permalink
Update service defaults to enable metric exemplars (#7155)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthebrown authored Jan 20, 2025
1 parent adc401b commit f5f3395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playground/Playground.ServiceDefaults/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) w
{
metrics.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddRuntimeInstrumentation();
.AddRuntimeInstrumentation()
.SetExemplarFilter(ExemplarFilterType.TraceBased);
})
.WithTracing(tracing =>
{
Expand Down

0 comments on commit f5f3395

Please sign in to comment.