Requested by: @adinauer
Merge target: (default)
Quick links:
Assign the accepted label to this issue to approve the release.
Targets
Checked targets will be skipped (either already published or user-requested skip). Uncheck to retry a target.
📋 Changelog
Fixes
- Session Replay: Fix Compose text masking mismatch with weighted text (#5218)
Features
- Add cache tracing instrumentation for Spring Boot 2, 3, and 4 (#5165)
- Wraps Spring
CacheManager and Cache beans to produce cache spans
- Set
sentry.enable-cache-tracing to true to enable this feature
- Add JCache (JSR-107) cache tracing via new
sentry-jcache module (#5165)
- Wraps JCache
Cache with SentryJCacheWrapper to produce cache spans
- Set the
enableCacheTracing option to true to enable this feature
- 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)
- Android: Add
beforeErrorSampling callback to Session Replay (#5214)
- Allows filtering which errors trigger replay capture before the
onErrorSampleRate is checked
- Returning
false skips replay capture entirely for that error; returning true proceeds with the normal sample rate check
- Example usage:
SentryAndroid.init(context) { options ->
options.sessionReplay.beforeErrorSampling =
SentryReplayOptions.BeforeErrorSamplingCallback { event, hint ->
// Skip replay for handled exceptions
val hasUnhandled = event.exceptions?.any { it.mechanism?.isHandled == false } == true
hasUnhandled
}
}
Dependencies
- Bump OpenTelemetry (#5225)
opentelemetry to 1.60.1 (was 1.57.0)
opentelemetry-instrumentation to 2.26.0 (was 2.23.0)
opentelemetry-instrumentation-alpha to 2.26.0-alpha (was 2.23.0-alpha)
opentelemetry-semconv to 1.40.0 (was 1.37.0)
opentelemetry-semconv-alpha to 1.40.0-alpha (was 1.37.0-alpha)
Requested by: @adinauer
Merge target: (default)
Quick links:
Assign the accepted label to this issue to approve the release.
Targets
Checked targets will be skipped (either already published or user-requested skip). Uncheck to retry a target.
📋 Changelog
Fixes
Features
CacheManagerandCachebeans to produce cache spanssentry.enable-cache-tracingtotrueto enable this featuresentry-jcachemodule (#5165)CachewithSentryJCacheWrapperto produce cache spansenableCacheTracingoption totrueto enable this featureIScopesStorageFactorytoSentryOptionsfor providing a customIScopesStorage, e.g. when the defaultThreadLocal-backed storage is incompatible with non-pinning thread models (#5199)beforeErrorSamplingcallback to Session Replay (#5214)onErrorSampleRateis checkedfalseskips replay capture entirely for that error; returningtrueproceeds with the normal sample rate checkDependencies
opentelemetryto1.60.1(was1.57.0)opentelemetry-instrumentationto2.26.0(was2.23.0)opentelemetry-instrumentation-alphato2.26.0-alpha(was2.23.0-alpha)opentelemetry-semconvto1.40.0(was1.37.0)opentelemetry-semconv-alphato1.40.0-alpha(was1.37.0-alpha)