Skip to content

Commit

Permalink
Fix OtlpExporter endpoint assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchmidt committed Apr 16, 2024
1 parent de44d4f commit dea6a5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ProjectOrigin.Stamp.Server/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void ConfigureServices(IServiceCollection services)
.AddMeter(InstrumentationOptions.MeterName)
.AddRuntimeInstrumentation()
.AddProcessInstrumentation()
.AddOtlpExporter(o => o.Endpoint = otlpOptions.Endpoint))
.AddOtlpExporter(o => o.Endpoint = otlpOptions.Endpoint!))
.WithTracing(provider =>
provider
.AddGrpcClientInstrumentation(grpcOptions =>
Expand All @@ -103,7 +103,7 @@ public void ConfigureServices(IServiceCollection services)
.AddAspNetCoreInstrumentation()
.AddNpgsql()
.AddSource(DiagnosticHeaders.DefaultListenerName)
.AddOtlpExporter(o => o.Endpoint = otlpOptions.Endpoint));
.AddOtlpExporter(o => o.Endpoint = otlpOptions.Endpoint!));
}

services.AddMassTransit(o =>
Expand Down

0 comments on commit dea6a5f

Please sign in to comment.