Skip to content

Commit 0837d67

Browse files
committed
Fix setup of OLTP exporter condition in sample
1 parent b7c4737 commit 0837d67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sample/ServiceDefaults.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder)
7171
});
7272

7373

74-
if (string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]))
74+
if (!string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]))
7575
builder.Services.AddOpenTelemetry().UseOtlpExporter();
7676

7777
return builder;

0 commit comments

Comments
 (0)