哨兵:事件没有堆栈跟踪

时间:2020-09-16 13:38:05

标签: android logging stack-trace sentry

我们正在使用Sentry进行错误记录。 对于真正的异常和崩溃,这很好用,但是在发送事件时,我也需要堆栈跟踪。 但是,这些事件在Sentry网站上没有StackTrace。

我已将配置选项设置为

  options.isAttachStacktrace = true
  options.isAttachThreads = true

我发送警告的消息如下:

fun logWarning(warning: Exception) {
    val event = SentryEvent()
    event.level = SentryLevel.WARNING
    event.message = Message()
    event.message.message = warning.message
    Sentry.captureEvent(event)
}

等级设置为:

项目:

classpath 'io.sentry:sentry-android-gradle-plugin:1.7.35'

应用程序:

apply plugin: 'io.sentry.android.gradle'

apply pluginsentry {
    autoProguardConfig true
    autoUpload true
    uploadNativeSymbols false
    includeNativeSources false
}: 'io.sentry.android.gradle'

implementation 'io.sentry:sentry-android-core:2.3.1'
implementation 'io.sentry:sentry-core:2.3.1'

那我在做什么错了?

1 个答案:

答案 0 :(得分:1)

这是一个错误https://github.com/getsentry/sentry-android/pull/540 应该由3.0.0-alpha.3修复,我们将在周一btw发布一个新版本