❔ Application insigths telemetry on linux not working

Code sample:
` services.AddOpenTelemetry().UseAzureMonitor(options => {
options.ConnectionString = config.ApplicationInsights.ConnectionString;
options.SamplingRatio = 0.1F;
});

services.ConfigureOpenTelemetryTracerProvider((sp, builder) =>
builder.ConfigureResource(resourceBuilder =>
resourceBuilder.AddAttributes(new Dictionary<string, object> {
{ "Service", config.MicroserviceName }
}))
.AddNpgsql()
.SetSampler(new AlwaysOnSampler()));
` services.AddOpenTelemetry().UseAzureMonitor(options => {
options.ConnectionString = config.ApplicationInsights.ConnectionString;
options.SamplingRatio = 0.1F;
});

services.ConfigureOpenTelemetryTracerProvider((sp, builder) =>
builder.ConfigureResource(resourceBuilder =>
resourceBuilder.AddAttributes(new Dictionary<string, object> {
{ "Service", config.MicroserviceName }
}))
.AddNpgsql()
.SetSampler(new AlwaysOnSampler()));
Currently trying to connect application insigths telemetry to my microservices. Everything works on windows, but trying to run on any linux microservice starts after 6 minutes. I have no idea why on windows everything is normal, but on linux this just does not start normally. Any clues? Tested on VM linux and docker linux same thing. multiple windows computers works.
1 Reply
Accord
Accord11mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.