Skip to content

fix(otel): fix span and trace ids for distributed tracing#801

Merged
lcian merged 7 commits intomasterfrom
lcian/fix/otel-ids
May 9, 2025
Merged

fix(otel): fix span and trace ids for distributed tracing#801
lcian merged 7 commits intomasterfrom
lcian/fix/otel-ids

Conversation

@lcian
Copy link
Copy Markdown
Member

@lcian lcian commented May 9, 2025

  • We're not guaranteed that OTEL trace id == Sentry trace id in the scenario where we continue a remote trace, therefore we need to go back to the static SPAN_MAP to rely on the Sentry trace_id.
  • We also need to force OTEL span id == Sentry span id when continuing a remote trace, so I've updated that API.

Noticed this during manual testing.
I should update the integration tests to cover more scenarios.

@lcian lcian requested review from Swatinem and sl0thentr0py May 9, 2025 13:11
@lcian lcian merged commit 7074891 into master May 9, 2025
14 checks passed
@lcian lcian deleted the lcian/fix/otel-ids branch May 9, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants