Skip to content

Commit

Permalink
fix: otel trace config
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisaAkiron committed Jan 19, 2025
1 parent 0c24eab commit bf8d48b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ internal static void ConfigureOpenTelemetry(this IHostApplicationBuilder builder
private static void AddOpenTelemetryExporters(this IHostApplicationBuilder builder)
{
var genericOtelEndpoint = builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"];
var meterOtelEndpoint = builder.Configuration["OTEL_EXPORTER_METRICS_ENDPOINT"];
var tracingOtelEndpoint = builder.Configuration["OTEL_EXPORTER_TRACING_ENDPOINT"];
var meterOtelEndpoint = builder.Configuration["OTEL_EXPORTER_OTLP_METRICS_ENDPOINT"];
var tracingOtelEndpoint = builder.Configuration["OTEL_EXPORTER_OTLP_TRACING_ENDPOINT"];

if (string.IsNullOrEmpty(genericOtelEndpoint ?? meterOtelEndpoint) is false)
{
Expand Down

0 comments on commit bf8d48b

Please sign in to comment.