diff --git a/sentry-kotlin-extensions/src/main/java/io/sentry/kotlin/SentryCoroutineExceptionHandler.kt b/sentry-kotlin-extensions/src/main/java/io/sentry/kotlin/SentryCoroutineExceptionHandler.kt index 9fc4a23d2e1..076a0c69aec 100644 --- a/sentry-kotlin-extensions/src/main/java/io/sentry/kotlin/SentryCoroutineExceptionHandler.kt +++ b/sentry-kotlin-extensions/src/main/java/io/sentry/kotlin/SentryCoroutineExceptionHandler.kt @@ -21,6 +21,7 @@ public open class SentryCoroutineExceptionHandler(private val scopes: IScopes = override fun handleException(context: CoroutineContext, exception: Throwable) { val mechanism = Mechanism().apply { type = "CoroutineExceptionHandler" + isHandled = true } // the current thread is not necessarily the one that threw the exception val error = ExceptionMechanismException(mechanism, exception, Thread.currentThread())