Skip to content

Commit

Permalink
fix: app host start without Otlp endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-kochetov committed Apr 11, 2024
1 parent d2d5bb5 commit b06a8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotnet/App.Server/Module/AppServerModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ protected override void InjectServices(IServiceCollection services)
services.AddSingleton<OtelMetrics>();
var openTelemetryEndpoint = Settings.OpenTelemetryEndpoint;
if (openTelemetryEndpoint.IsNullOrEmpty())
return;
openTelemetryEndpoint = "localhost";

var (host, port) = openTelemetryEndpoint.ParseHostPort(4317);
var openTelemetryEndpointUri = $"http://{host}:{port.Format()}".ToUri();
Expand Down

0 comments on commit b06a8d1

Please sign in to comment.