You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(core): Add configurable IScopesStorageFactory to SentryOptions (#5199)
* feat(core): Add configurable IScopesStorageFactory to SentryOptions
Allow users to provide a custom IScopesStorage factory via
SentryOptions.setScopesStorageFactory(). When set, the custom factory
takes precedence over the default auto-detection logic.
Fixes#5193
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* changelog
* ref(core): Have ScopesStorageFactory implement IScopesStorageFactory
Add LoadClass and ILogger parameters to IScopesStorageFactory.create()
so custom factories have access to class loading utilities.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Revert "ref(core): Have ScopesStorageFactory implement IScopesStorageFactory"
This reverts commit a0d77eb.
* feat(core): Pass SentryOptions to IScopesStorageFactory.create()
SPI-discovered factory implementations are instantiated via ServiceLoader
with no-arg constructors, so they need access to options like logger and
DSN at creation time. Change the interface method signature to accept
SentryOptions as a parameter.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
### Features
6
6
7
+
- Add configurable `IScopesStorageFactory` to `SentryOptions` for providing a custom `IScopesStorage`, e.g. when the default `ThreadLocal`-backed storage is incompatible with non-pinning thread models ([#5199](https://github.com/getsentry/sentry-java/pull/5199))
7
8
- Android: Add `beforeErrorSampling` callback to Session Replay ([#5214](https://github.com/getsentry/sentry-java/pull/5214))
8
9
- Allows filtering which errors trigger replay capture before the `onErrorSampleRate` is checked
9
10
- Returning `false` skips replay capture entirely for that error; returning `true` proceeds with the normal sample rate check
0 commit comments