Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Baggage is not propagated across spans of a trace #2473

Open
mu88 opened this issue Jan 21, 2025 · 0 comments
Open

[bug] Baggage is not propagated across spans of a trace #2473

mu88 opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working comp:instrumentation.entityframeworkcore Things related to OpenTelemetry.Instrumentation.EntityFrameworkCore

Comments

@mu88
Copy link

mu88 commented Jan 21, 2025

Component

OpenTelemetry.Instrumentation.EntityFrameworkCore

Package Version

Package Name Version
OpenTelemetry 1.4.0
OpenTelemetry.Extensions.Hosting 1.4.0
OpenTelemetry.Instrumentation.AspNetCore 1.0.0-rc9
OpenTelemetry.Instrumentation.EntityFrameworkCore 1.0.0-rc9
OpenTelemetry.Instrumentation.Runtime 1.0.0-rc9
OpenTelemetry.Instrumentation.Process 1.0.0-rc9
OpenTelemetry.Exporter.OpenTelemetryProtocol 1.4.0

Runtime Version

net9.0

Description

Baggage items set using Activity.SetBaggage or OpenTelemetry.Baggage.SetBaggage are not propagated across spans of a trace.

Steps to Reproduce

  1. Clone the repository Repro_OpenTelemetry_Baggage.
  2. Run docker compose up.
  3. Call http://localhost:8080/seed to seed some data.
  4. Call http://localhost:8080/blogs to trigger trace creation.
  5. Open the trace of http://localhost:8080/blogs using the Aspire Dashboard http://localhost:18888/traces.

Expected Result

Both the baggage items custom_identifier_baggage_OTEL and custom_identifier_baggage_Activity should be present on the corresponding EF Core span.

Actual Result

The baggage items custom_identifier_baggage_OTEL and custom_identifier_baggage_Activity are missing on the corresponding EF Core span:

Image

Additional Context

No response

@mu88 mu88 added the bug Something isn't working label Jan 21, 2025
@github-actions github-actions bot added the comp:instrumentation.entityframeworkcore Things related to OpenTelemetry.Instrumentation.EntityFrameworkCore label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp:instrumentation.entityframeworkcore Things related to OpenTelemetry.Instrumentation.EntityFrameworkCore
Projects
None yet
Development

No branches or pull requests

1 participant