Replies: 21 comments 14 replies
-
If you publishing the |
Beta Was this translation helpful? Give feedback.
-
@efonsecab I am moving this issue over to discussions because I would be surprised if this is a bug given how often we hit this code path. If after some discussion it does end up being a bug we'll open an issue with the specifics of the bug. |
Beta Was this translation helpful? Give feedback.
-
Same problem for my. Logging/tracing/metrics works in localhost and my test environment. But not in my production envionment. And I dont find anything that explains why. I have no enviroment specific coding outside of the starter kit. |
Beta Was this translation helpful? Give feedback.
-
This has started happening for me too. If I start a new I'm still getting console logs output, but nothing in structured logs or traces. Even running Maybe I have to delete the entire resource group and re-publish from a new profile? But any suggestions to diagnose or fix when this happens to an existing Aspire application would be good. |
Beta Was this translation helpful? Give feedback.
-
Just to confirm this, I created a new However if I run So I think either the Aspire dashboard is being corrupted over time, or there ends up being a problem inside the resource group that cannot be reverted. @mitchdenny any thoughts on this? I have both environments deployed so I can get more details, if you can let me know what to check? |
Beta Was this translation helpful? Give feedback.
-
I tried to reproduce it in a new app, no luck yet, however, comparing the Container Apps Environment logs I do see this, not sure if it is useful as a hint. "ScaledObject doesn\u0027t have correct triggers specification" This message appears only for the "Worker Service" projects |
Beta Was this translation helpful? Give feedback.
-
@kvenkatrajan this might be an issue to raise the the ACA team. It seems like the problem is going to either be in the dashboard or in the resource server that ACA provides for the ACA-deployed dashboard to talk to. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@mitchdenny sent it to ACA dev for investigation. |
Beta Was this translation helpful? Give feedback.
-
@MrDeej thanks for bringing this to our attention. This is a known issue, and we are working on its long-term fix. You were not seeing OTLP data because there was a mismatch in the OTLP Api key due to a race condition. |
Beta Was this translation helpful? Give feedback.
-
Hi @snehapar9 , thanks for response. No, I do not have any logs/metric/traces in any of my environments. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
My test environment dashboard is working again after re-deploy, but production did not work after re-deploy and still says "No structured logs found" |
Beta Was this translation helpful? Give feedback.
-
Hello. Any news here? I am still missing my logs in my production environment. |
Beta Was this translation helpful? Give feedback.
-
@MrDeej the fix is being rolled out now. Has not been deployed to Norway East yet. |
Beta Was this translation helpful? Give feedback.
-
Mine stopped showing up once again out of nowhere, apps are published in East US 2 Azure Region. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I can once again see everything in the Dashboard for the published apps. |
Beta Was this translation helpful? Give feedback.
-
@MrDeej Are you still seeing the 404 error? |
Beta Was this translation helpful? Give feedback.
-
Hi, I have the same problem but with the local environment. In my case, I run just the Aspire Dashboard in the container next to the OpenTelemetry Collector with my Hello World App. My docker-compose file: version: '3.8'
services:
boardgamesclub.backend:
container_name: helloworld
image: helloworld.backend
build:
context: ./backend/HelloWorld.Backend/HelloWorld.Backend
dockerfile: Dockerfile
environment:
- ASPNETCORE_URLS=http://*:5000/
ports:
- "5000:5000"
depends_on:
- otel-collector
otel-collector:
container_name: otel-collector
image: otel/opentelemetry-collector-contrib:latest
command: [ "--config", "/etc/otel-collector-config.yaml" ]
ports:
- "4317:4317" # For gRPC
- "8888:8888" # OpenTelemetry health check endpoint
volumes:
- ./backend/otel-collector-config.yml:/etc/otel-collector-config.yaml
aspire:
container_name: aspire
image: mcr.microsoft.com/dotnet/aspire-dashboard:8.1.0
ports:
- "18888:18888" # For UI
- "18889:18889" # For OTLP protocol
depends_on:
- otel-collector OpenTelemetry Conllector config receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
verbosity: detailed
otlp:
endpoint: "aspire:18889"
tls:
insecure: true
service:
pipelines:
traces:
receivers: [otlp]
exporters: [otlp]
metrics:
receivers: [otlp]
exporters: [otlp]
logs:
receivers: [otlp]
exporters: [otlp] C# instrumentation public static IHostApplicationBuilder AddShared(this WebApplicationBuilder builder, IConfiguration configuration)
{
var serilog = new LoggerConfiguration();
serilog.ReadFrom.Configuration(configuration);
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddSerilog(serilog.CreateLogger());
builder.Services.AddOptions<CorsConfig>()
.Bind(configuration.GetSection(CorsConfig.KEY))
.ValidateDataAnnotations()
.ValidateOnStart();
builder.Services.AddOptions<TelemetryConfig>()
.Bind(configuration.GetSection(TelemetryConfig.KEY))
.ValidateDataAnnotations()
.ValidateOnStart();
builder.Services.AddCors(setup =>
setup.AddDefaultPolicy(policy =>
policy.AddHostConfiguration(configuration)));
var telemetry = configuration.GetSection(TelemetryConfig.KEY).Get<TelemetryConfig>()!;
var serviceName = configuration.GetValue("ServiceName", defaultValue: "HelloWorld")!;
var serviceVersion = typeof(Program).Assembly.GetName().Version?.ToString() ?? "dev";
var serviceInstanceId = Environment.MachineName;
builder.Logging
.ClearProviders()
.AddSerilog()
.AddOpenTelemetry(logger =>
{
logger.SetResourceBuilder(ResourceBuilder.CreateDefault().AddService(
serviceName: serviceName,
serviceVersion: serviceVersion,
serviceInstanceId: serviceInstanceId));
logger.IncludeScopes = true;
logger.AddOtlpExporter(options =>
{
options.Protocol = telemetry.Logging.Protocol;
options.Endpoint = telemetry.Logging.Endpoint;
});
});
builder.Services
.AddOpenTelemetry()
.ConfigureResource(resource =>
resource.AddService(
serviceName: serviceName,
serviceVersion: serviceVersion,
serviceInstanceId: serviceInstanceId))
.WithTracing(tracing =>
{
tracing.AddAspNetCoreInstrumentation();
tracing.AddHttpClientInstrumentation();
tracing.AddSqlClientInstrumentation();
tracing.AddOtlpExporter(options =>
{
options.Protocol = telemetry.Tracing.Protocol;
options.Endpoint = telemetry.Tracing.Endpoint;
});
})
.WithMetrics(metrics =>
{
metrics
.AddAspNetCoreInstrumentation()
.AddHttpClientInstrumentation()
.AddMeter("Microsoft.AspNetCore.Hosting")
.AddMeter("Microsoft.AspNetCore.Server.Kestrel")
.AddOtlpExporter(options =>
{
options.Protocol = telemetry.Metrics.Protocol;
options.Endpoint = telemetry.Metrics.Endpoint;
});
});
return builder;
} |
Beta Was this translation helpful? Give feedback.
-
I have the same issue: on my local Windows machine, structured logs and metrics are available, but on my Debian 12 server, I have neither. I also tested the aspire-starter app on the server, but it does not show structured logs. Additionally, I tested it on my local WSL Debian environment, and there were no structured logs there either. so I think the issue is related to Debian/Linux. version: 9.2.1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not being able to see the structured logs in the published app, they however show correctly locally.
Same is happening for traces and metrics.
This is the dashboard version
AppHost project

ServiceDefaults project

Log Streams are not showing any error, so no idea what may be causing it.
Beta Was this translation helpful? Give feedback.
All reactions