Skip to content

Commit

Permalink
Corrected a simple typo (davidfowl#56)
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Gonzales <322275+TimothyG@users.noreply.github.com>

Signed-off-by: Tim Gonzales <322275+TimothyG@users.noreply.github.com>
  • Loading branch information
TimothyG authored Dec 16, 2022
1 parent e15c9f7 commit 1ed0767
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TodoApi/Extensions/OpenTelemetryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public static class OpenTelemetryExtensions
public static WebApplicationBuilder AddOpenTelemetry(this WebApplicationBuilder builder)
{
var resourceBuilder = ResourceBuilder.CreateDefault().AddService(builder.Environment.ApplicationName);
var oltpEndpoint = builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"];
var otlpEndpoint = builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"];

if (!string.IsNullOrWhiteSpace(oltpEndpoint))
if (!string.IsNullOrWhiteSpace(otlpEndpoint))
{
builder.Logging.AddOpenTelemetry(logging =>
{
Expand Down Expand Up @@ -59,7 +59,7 @@ public static WebApplicationBuilder AddOpenTelemetry(this WebApplicationBuilder
.AddHttpClientInstrumentation()
.AddEntityFrameworkCoreInstrumentation();
if (!string.IsNullOrWhiteSpace(oltpEndpoint))
if (!string.IsNullOrWhiteSpace(otlpEndpoint))
{
tracing.AddOtlpExporter();
}
Expand Down

0 comments on commit 1ed0767

Please sign in to comment.