Skip to content

Commit 2882875

Browse files
authored
Fix AbstractMethodError when using SentryTraced for Jetpack Compose (#4255)
* Override default interface impl to fix AbstractMethodError * Update Changelog
1 parent 9683566 commit 2882875

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- If you are using OpenTelemetry v1 `OpenTelemetryAppender`, please consider upgrading to v2
1919
- Pass OpenTelemetry span attributes into TracesSampler callback ([#4253](https://github.com/getsentry/sentry-java/pull/4253))
2020
- `SamplingContext` now has a `getAttribute` method that grants access to OpenTelemetry span attributes via their String key (e.g. `http.request.method`)
21+
- Fix AbstractMethodError when using SentryTraced for Jetpack Compose ([#4255](https://github.com/getsentry/sentry-java/pull/4255))
2122

2223
### Features
2324

sentry-compose/src/androidMain/kotlin/io/sentry/compose/SentryModifier.kt

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ public object SentryModifier {
5151
Modifier.Node(),
5252
SemanticsModifierNode {
5353

54+
override val shouldClearDescendantSemantics: Boolean
55+
get() = false
56+
57+
override val shouldMergeDescendantSemantics: Boolean
58+
get() = false
59+
5460
override fun SemanticsPropertyReceiver.applySemantics() {
5561
this[SentryTag] = tag
5662
}

0 commit comments

Comments
 (0)