Skip to content

Commit

Permalink
Update OpenTelemetry exporter configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
0GiS0 committed Dec 18, 2023
1 parent f5275a7 commit 6d01f12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .devcontainer/otel-collector-config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://opentelemetry.io/docs/collector/configuration/
receivers:
otlp:
protocols:
Expand Down
6 changes: 4 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

options.AddConsoleExporter();

options.AddOtlpExporter();
// options.AddOtlpExporter();

});

Expand All @@ -52,7 +52,7 @@
// tracing.AddSqlClientInstrumentation();
tracing.AddEntityFrameworkCoreInstrumentation();
tracing.AddConsoleExporter();
tracing.AddOtlpExporter();
// tracing.AddOtlpExporter();
})
.WithMetrics(metrics =>
{
Expand All @@ -62,6 +62,8 @@
metrics.AddRuntimeInstrumentation();
metrics.AddConsoleExporter();
metrics.AddPrometheusExporter();

// metrics.AddOtlpExporter();
});

builder.Services.Configure<AspNetCoreInstrumentationOptions>(options =>
Expand Down

0 comments on commit 6d01f12

Please sign in to comment.