Restore span names for GraphQL on the new version of OpenTelemetry (by changing OpenTelemetry defaults)#4537
Merged
adinauer merged 5 commits intofeat/bump-otel-1_51_0from Jul 3, 2025
Conversation
Contributor
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Restore span names for GraphQL on the new version of OpenTelemetry (by changing OpenTelemetry defaults) ([#4537](https://github.com/getsentry/sentry-java/pull/4537))If none of the above apply, you can opt out of this check by adding |
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 228dd89 | 449.13 ms | 465.16 ms | 16.04 ms |
| f2bb552 | 412.40 ms | 417.63 ms | 5.23 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 228dd89 | 1.58 MiB | 2.09 MiB | 518.90 KiB |
| f2bb552 | 1.58 MiB | 2.09 MiB | 518.90 KiB |
Previous results on branch: feat/otel-bump-graphql-op-fix-change-otel-defaults
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8053e0b | 409.17 ms | 452.52 ms | 43.35 ms |
| 33c64d6 | 419.66 ms | 488.46 ms | 68.80 ms |
| 3a46437 | 386.28 ms | 408.67 ms | 22.39 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 8053e0b | 1.58 MiB | 2.09 MiB | 519.08 KiB |
| 33c64d6 | 1.58 MiB | 2.09 MiB | 519.07 KiB |
| 3a46437 | 1.58 MiB | 2.09 MiB | 519.08 KiB |
Member
|
Wrong branch I think, anyway I understand the approach. |
199ce90 to
aed6b3b
Compare
Member
Author
Fixed |
lcian
approved these changes
Jul 3, 2025
7 tasks
adinauer
added a commit
that referenced
this pull request
Jul 7, 2025
…emconv to `1.34.0` (#4532) * Bump OTel SDK to 1.51.0, instrumentation to 2.17.0 and semconv to 1.34.0 * Restore span names for GraphQL on the new version of OpenTelemetry (by changing OpenTelemetry defaults) (#4537) * do not override span name if customized * Format code * log in case system property cannot be set * merge * changelog --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> * Use non alpha version for semconv * move changelog entry --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
adinauer
added a commit
that referenced
this pull request
Jul 8, 2025
* Bump OTel SDK to 1.51.0, instrumentation to 2.17.0 and semconv to 1.34.0 * Restore span names for GraphQL on the new version of OpenTelemetry (by changing OpenTelemetry defaults) (#4537) * do not override span name if customized * Format code * log in case system property cannot be set * merge * changelog --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> * more assertions for e2e tests * Use non alpha version for semconv * fix changelog * Format code * api file and format --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
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
GraphQL span names in OpenTelemetry have been changed to just
queryfrom e.g.query GreetingQueryfor this query:This PR uses span attributes to restore the previous
opanddescriptionfor Sentry spans by changing the following config of the OpenTelemetry SDK to restore previous behaviour:More info:
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps