sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Add `globalHubMode` to options

Open adinauer opened this issue 4 months ago • 2 comments

:scroll: Description

globalHubMode used to only be a param on Sentry.init. To make it easier to be used in e.g. Desktop environments, we now additionally added it as an option on SentryOptions that can also be set via sentry.properties.

We can consider deprecating and removing the Sentry.init overloads that have the globalHubMode parameter.

If both the param on Sentry.init and the option are set, the option will win. By default the option is set to null meaning whatever is passed to Sentry.init wins.

:bulb: Motivation and Context

Fixes #3779

:green_heart: How did you test it?

:pencil: Checklist

  • [ ] I reviewed the submitted code.
  • [ ] I added tests to verify the changes.
  • [ ] No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • [ ] I updated the docs if needed.
  • [ ] Review from the native team if needed.
  • [ ] No breaking change or entry added to the changelog.
  • [ ] No breaking change for hybrid SDKs or communicated to hybrid SDKs.

:crystal_ball: Next steps

adinauer avatar Oct 18 '24 07:10 adinauer