Skip to content

aspire-dashboard Structured logs -> Log entry details -> Resource attributes not always correct/seem cached #5126

Description

@dlosch

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Hi,

when exporting otel logging data from a .NET app to both Seq and Aspire Dashboard (8.0.2 and 8.1.0 show same behavior), aspire dashboard doesn't seem to render attribute values under Structured logs -> Log entry details -> Resource -> attributes correctly at all times (sometimes it seems parts of the attributes get cached).

First of all, displayed values for a specific log entry differ between seq (correct) and aspire dashboard (not correct).

1.) Run the app, attribute foo=value1
2.) Seq and Aspire dashboard display the entry with foo=value1
3.) stop app, change value to foo=newValue
4.) re run app
5.) Seq=>foo=newValue, aspire dashboard (no restart of container) foo=value1

Yesterday, with 8.0.2, I also had issues that some attribute pairs did not show up at all at times in aspire dashboard (not a rendering issue).

Expected Behavior

No response

Steps To Reproduce

  • asp.net 8 app
  • builder.Services.AddLogging(logging => logging.AddOpenTelemetry(openTelemetryLoggerOptions => {
    openTelemetryLoggerOptions.SetResourceBuilder(
    [...]
    .AddAttributes(new Dictionary<string, object> {
    [...]

Exceptions (if any)

No response

.NET Version info

SDK 8.0.303
Runtime: 8.0.7
AOT publish

Anything else?

Affects aspire-dashboard 8.1.0 and 8.0.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions