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

POTEL 63 - Let OpenTelemetry handle extracting and injecting tracing information #3953

Merged

Conversation

adinauer
Copy link
Member

@adinauer adinauer commented Dec 3, 2024

📜 Description

Use ignoredSpanOrigins to also disable calls to .continueTrace and injecting tracing headers on outgoing calls.

💡 Motivation and Context

When using OpenTelemetry and our Sentry integrations, we're overriding our OpenTelemetry integrations PropagationContext. This is especially problematic when a sentry-trace header comes in with deferred sampling decision (neither -1 nor -0 suffix) and e.g. the Spring integrations overrides the sampling decision made by SentrySampler.

💚 How did you test it?

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

Sorry, something went wrong.

adinauer and others added 15 commits November 28, 2024 06:20

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…coming headers
This reverts commit a90f316.
Copy link
Contributor

github-actions bot commented Dec 3, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against a78c181

Copy link
Contributor

github-actions bot commented Dec 3, 2024

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 430.16 ms 436.27 ms 6.11 ms
Size 1.65 MiB 2.31 MiB 676.08 KiB

Previous results on branch: feat/disable-continue-trace-based-on-ignored-span-origins

Startup times

Revision Plain With Sentry Diff
592160f 403.94 ms 466.88 ms 62.94 ms
f6fa4a0 398.98 ms 408.94 ms 9.96 ms

App size

Revision Plain With Sentry Diff
592160f 1.65 MiB 2.31 MiB 676.08 KiB
f6fa4a0 1.65 MiB 2.31 MiB 676.08 KiB

Copy link
Member

@markushi markushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Base automatically changed from feat/build-propagation-context-from-sampling-decision to 8.x.x December 5, 2024 09:52
…d-span-origins
@adinauer adinauer merged commit a2fc547 into 8.x.x Dec 5, 2024
35 checks passed
@adinauer adinauer deleted the feat/disable-continue-trace-based-on-ignored-span-origins branch December 5, 2024 10:17
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.

None yet

3 participants