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:
Harsh Shandilya 2022-03-13 17:41:01 +05:30 committed by GitHub
parent 20725219bd
commit 861ca58a58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 76 additions and 8 deletions

View 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) {}
}

View 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) {}
}

View 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,
)