Reputation: 5160
We are using Sentry for error logging. This works fine for real exceptions and crashes but when sending Events I need a Stack trace, too. However, these Events have no StackTrace in the Sentry website.
I have set the config options to
options.isAttachStacktrace = true
options.isAttachThreads = true
And my message for sending warnings looks like this
fun logWarning(warning: Exception) {
val event = SentryEvent()
event.level = SentryLevel.WARNING
event.message = Message()
event.message.message = warning.message
Sentry.captureEvent(event)
}
Gradle is set to:
Project:
classpath 'io.sentry:sentry-android-gradle-plugin:1.7.35'
App:
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'
So what am I doing wrong?
Upvotes: 1
Views: 2862
Reputation: 208
it was a bug https://github.com/getsentry/sentry-android/pull/540 it should be fixed by 3.0.0-alpha.3, we are making a new release on Monday btw
Upvotes: 1