Skip to content

Aspire Dashboard (v9.3) returns 404 on http://localhost:18890/structuredlogs endpoint when using HTTP/Protobuf with OpenTelemetry .NET Framework #9967

Closed as not planned
@romerod

Description

@romerod

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I'm encountering an issue with the latest standalone Aspire Dashboard (v9.3, pulled via mcr.microsoft.com/dotnet/aspire-dashboard:latest) when attempting to send logs using the OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package (v1.12.0) over HTTP/Protobuf.


Setup:

  • Aspire Dashboard version: 9.3 (latest)

  • Dashboard run command:

    docker run --rm -it -p 18888:18888 -p 4317:18889 -p 4318:18890 \
      -e DOTNET_DASHBOARD_UNSECURED_ALLOW_ANONYMOUS=true \
      -d --name aspire-dashboard \
      mcr.microsoft.com/dotnet/aspire-dashboard:latest
  • Telemetry exporter: OpenTelemetry.Exporter.OpenTelemetryProtocol v1.12.0

  • Target endpoint: http://localhost:4318

  • Protocol: HTTP/Protobuf (gRPC not supported on .NET Framework without tls)


Issue:

  • Logs are silently dropped when sent to http://localhost:4318/structuredlogs, response to requests have 404 status code.
  • No errors are thrown in the application, but logs do not appear in the dashboard.
  • Manually accessing http://localhost:4318/structuredlogs in a browser also returns a 404 Not Found.
  • The same behavior occurs with the nightly version of the dashboard.

Container Logs:

info: Aspire.Dashboard.DashboardWebApplication[0]
      OTLP/HTTP listening on: http://[::]:18890

This suggests the dashboard is correctly listening on port 18890 for OTLP/HTTP.

Expected Behavior

  • The http://localhost:4318/structuredlogs endpoint should accept and process structured logs sent via HTTP/Protobuf.

Steps To Reproduce

  1. Run the Aspire Dashboard using the Docker command above.
  2. Configure an OpenTelemetry .NET Framework app to export logs to http://localhost:4318 using HTTP/Protobuf.
  3. Observe that logs are not received and /structuredlogs returns 404.

Exceptions (if any)

System.Net.Http.HttpRequestException with 404

.NET Version info

.NET 4.7.2

Anything else?

  • Would appreciate clarification on what the response to a get request on http://localhost:4318/structuredlogs is expected to be.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions