-
-
Notifications
You must be signed in to change notification settings - Fork 451
fix(init): get Application from Context to register integrations #4355
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
base: main
Are you sure you want to change the base?
fix(init): get Application from Context to register integrations #4355
Conversation
Performance metrics 🚀
|
a03fc8d
to
9d55fdf
Compare
@@ -16,7 +16,8 @@ | |||
- Set `-Dio.opentelemetry.context.contextStorageProvider=io.sentry.opentelemetry.SentryContextStorageProvider` on your `java` command | |||
- Sentry will then wrap the other `ContextStorageProvider` that has been configured by loading it through SPI | |||
- If no other `ContextStorageProvider` is available or there are problems loading it, we fall back to using `SentryOtelThreadLocalStorage` | |||
|
|||
- Fallback to `context.applicationContext` if `Sentry.init(context)` is not instance of Application ([#4355](https://github.com/getsentry/sentry-java/pull/4355)) |
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.
- 🚫 The changelog entry seems to be part of an already released section
## 8.10.0
.
Consider moving the entry to the## Unreleased
section, please.
this needs some more discussion, as there are things that may not make sense for react. |
Let's have a quick call (also with @buenaflor) before getting this merged, to clarify what kind of integrations are useful / or not. This probably also affects Unity/Unreal. |
📜 Description
React Native Native Modules receive ReactContext which is not instance of Application class.
This fixes missing integrations in RN applications and other cases when supplied context is not directly Application class.
💚 How did you test it?
RN Sample app, added unit tests
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps