Configure Sentry with more information (#1782)
* build-logic: remove error path in Sentry plugin * gradle: fix UnstableApiUsage warning * build-logic: configure Sentry Gradle Plugin * app: set traces sample-rate to 1.0 * sentry-stub: init * app: populate Sentry user field with feature flags
This commit is contained in:
parent
20725219bd
commit
861ca58a58
14 changed files with 76 additions and 8 deletions
10
sentry-stub/src/main/kotlin/io/sentry/Scope.kt
Normal file
10
sentry-stub/src/main/kotlin/io/sentry/Scope.kt
Normal file
|
@ -0,0 +1,10 @@
|
|||
@file:Suppress("Unused", "UNUSED_PARAMETER")
|
||||
|
||||
package io.sentry
|
||||
|
||||
import io.sentry.protocol.User
|
||||
|
||||
public class Scope {
|
||||
public var user: User? = null
|
||||
public fun setTag(tag: String, value: String) {}
|
||||
}
|
8
sentry-stub/src/main/kotlin/io/sentry/Sentry.kt
Normal file
8
sentry-stub/src/main/kotlin/io/sentry/Sentry.kt
Normal file
|
@ -0,0 +1,8 @@
|
|||
@file:Suppress("Unused", "UNUSED_PARAMETER")
|
||||
|
||||
package io.sentry
|
||||
|
||||
/** Stubs for the Sentry SDK */
|
||||
public object Sentry {
|
||||
public fun configureScope(callback: (Scope) -> Unit) {}
|
||||
}
|
12
sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt
Normal file
12
sentry-stub/src/main/kotlin/io/sentry/protocol/User.kt
Normal file
|
@ -0,0 +1,12 @@
|
|||
@file:Suppress("Unused", "UNUSED_PARAMETER")
|
||||
|
||||
package io.sentry.protocol
|
||||
|
||||
public data class User(
|
||||
public var email: String? = null,
|
||||
public var id: String? = null,
|
||||
public var username: String? = null,
|
||||
public var ipAddress: String? = null,
|
||||
public var others: Map<String?, String>? = null,
|
||||
public var unknown: Map<String?, String>? = null,
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue