-
-
Notifications
You must be signed in to change notification settings - Fork 449
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 51 - Cleanup OTel class loading #3848
Conversation
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- POTEL 51 - Cleanup OTel class loading ([#3848](https://github.com/getsentry/sentry-java/pull/3848)) If none of the above apply, you can opt out of this check by adding |
Performance metrics 🚀
|
which causes OtelContextScopesStorage.init to register SentryContextStorage | ||
as a wrapper. The wrapper can only be set until storage has been initialized by OpenTelemetry. | ||
*/ | ||
Sentry.getGlobalScope(); |
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.
Hmm, should we create a more specific method in the Sentry
class to make it clear that this method initalizes the storage?
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.
I think the extracted method plus the comment here should suffice and I'd rather not clutter public API with a noop method.
...ng-boot-jakarta/src/test/kotlin/io/sentry/spring/boot/jakarta/SentryAutoConfigurationTest.kt
Show resolved
Hide resolved
...ng-boot-jakarta/src/test/kotlin/io/sentry/spring/boot/jakarta/SentryAutoConfigurationTest.kt
Show resolved
Hide resolved
...ng-boot-jakarta/src/test/kotlin/io/sentry/spring/boot/jakarta/SentryAutoConfigurationTest.kt
Show resolved
Hide resolved
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.
LGTM 👍
📜 Description
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps