From dea6a5fb789e56d8f0e161b9a2197afc19d716d2 Mon Sep 17 00:00:00 2001 From: Martin Schmidt Date: Tue, 16 Apr 2024 08:08:12 +0000 Subject: [PATCH] Fix OtlpExporter endpoint assignment --- src/ProjectOrigin.Stamp.Server/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ProjectOrigin.Stamp.Server/Startup.cs b/src/ProjectOrigin.Stamp.Server/Startup.cs index a2e65fb..9a55294 100644 --- a/src/ProjectOrigin.Stamp.Server/Startup.cs +++ b/src/ProjectOrigin.Stamp.Server/Startup.cs @@ -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 => @@ -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 =>