Handle NoOpScopes in Context when starting a span through OpenTelemetry#4823
Merged
Handle NoOpScopes in Context when starting a span through OpenTelemetry#4823
NoOpScopes in Context when starting a span through OpenTelemetry#4823Conversation
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| d364ace | 411.72 ms | 430.81 ms | 19.10 ms |
| ee747ae | 396.82 ms | 441.67 ms | 44.86 ms |
| ee747ae | 415.92 ms | 470.15 ms | 54.23 ms |
| 889ecea | 367.58 ms | 437.52 ms | 69.94 ms |
| b77456b | 393.26 ms | 441.10 ms | 47.84 ms |
| f634d01 | 375.06 ms | 420.04 ms | 44.98 ms |
| b750b96 | 408.98 ms | 480.32 ms | 71.34 ms |
| b3d8889 | 371.69 ms | 432.96 ms | 61.26 ms |
| 9fbb112 | 401.87 ms | 515.87 ms | 114.00 ms |
| ee747ae | 358.21 ms | 389.41 ms | 31.20 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| d364ace | 1.58 MiB | 2.11 MiB | 539.75 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
| 889ecea | 1.58 MiB | 2.11 MiB | 539.75 KiB |
| b77456b | 1.58 MiB | 2.12 MiB | 548.11 KiB |
| f634d01 | 1.58 MiB | 2.10 MiB | 533.40 KiB |
| b750b96 | 1.58 MiB | 2.10 MiB | 533.19 KiB |
| b3d8889 | 1.58 MiB | 2.10 MiB | 535.06 KiB |
| 9fbb112 | 1.58 MiB | 2.11 MiB | 539.18 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
lcian
approved these changes
Oct 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Treat
NoOpScopesthe same asnullinOtelSentrySpanProcessorand fork root scopes.💡 Motivation and Context
Fixes #4806
It was causing customers requests to fail due to
SentryReactorThreadLocalAccessorstoringNoOpScopesinto OpenTelemetryContextandOtelSentrySpanProcessorthen trying to fork that instead of forking root scopes.💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps