Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d554eed authored by Sayantan Roychowdhury's avatar Sayantan Roychowdhury
Browse files

set userId

parent efb7cbc4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ import io.sentry.Sentry
import io.sentry.SentryLevel
import io.sentry.android.core.SentryAndroid
import io.sentry.android.timber.SentryTimberIntegration
import io.sentry.protocol.User

object Telemetry {

@@ -58,6 +59,9 @@ object Telemetry {
                } else {
                    it.removeTag(Constants.TAG_E_VERSION)
                }
                it.user = User().apply {
                    id = userSentryId
                }
            }
        } catch (e: Exception) {
            e.printStackTrace()