-
-
Notifications
You must be signed in to change notification settings - Fork 453
Restore span names for GraphQL on the new version of OpenTelemetry (by changing OpenTelemetry defaults) #4537
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
Restore span names for GraphQL on the new version of OpenTelemetry (by changing OpenTelemetry defaults) #4537
Conversation
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 |
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 |
Wrong branch I think, anyway I understand the approach. |
199ce90
to
aed6b3b
Compare
Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I prefer this option as it allows the user to easily override it, it's more transparent, and less code to maintain.
…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>
* 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>
📜 Description
GraphQL span names in OpenTelemetry have been changed to just
query
from e.g.query GreetingQuery
for this query:This PR uses span attributes to restore the previous
op
anddescription
for 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
sendDefaultPII
is enabled.🔮 Next steps