Skip to content

Commit

Permalink
86: Added metrics exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmatys committed May 25, 2024
1 parent 1d76dd4 commit f430197
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions API/ASSISTENTE.Common.OpenTelemetry/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ public static WebApplicationBuilder AddOpenTelemetry(
.ConfigureResource(resource => resource.AddService(ApplicationName()))
.WithMetrics(metrics =>
{
// TODO: here we can add our custom metrics by using AddMeter() method

metrics
.AddRuntimeInstrumentation()
.AddHttpClientInstrumentation()
.AddAspNetCoreInstrumentation()
.AddPrometheusExporter();
// TODO: here we can add our custom metrics by using AddMeter() method

metrics.AddOtlpExporter();
})
.WithTracing(tracing =>
{
Expand Down

0 comments on commit f430197

Please sign in to comment.