mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Distinguish between indexable and non-indexable extra data
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
fa8d7b73c7
commit
fe9224b807
+5
-1
@@ -113,10 +113,14 @@ class SentryAnalyticsProvider(
|
||||
override fun updateSuperProperties(updatedProperties: SuperProperties) {
|
||||
}
|
||||
|
||||
override fun addUserData(key: String, value: String) {
|
||||
override fun addExtraData(key: String, value: String) {
|
||||
Sentry.setExtra(key, value)
|
||||
}
|
||||
|
||||
override fun addIndexableData(key: String, value: String) {
|
||||
Sentry.setTag(key, value)
|
||||
}
|
||||
|
||||
override fun trackError(throwable: Throwable) {
|
||||
Sentry.captureException(throwable)
|
||||
}
|
||||
|
||||
+3
-1
@@ -20,7 +20,9 @@ class SentryAnalyticsTransaction private constructor(span: ISpan) : AnalyticsTra
|
||||
override fun startChild(operation: String, description: String?): AnalyticsTransaction = SentryAnalyticsTransaction(
|
||||
inner.startChild(operation, description)
|
||||
)
|
||||
override fun setData(key: String, value: Any) = inner.setData(key, value)
|
||||
|
||||
override fun putIndexableData(key: String, value: String) = inner.setTag(key, value)
|
||||
override fun putExtraData(key: String, value: String) = inner.setData(key, value)
|
||||
override fun traceId(): String? = inner.toSentryTrace().value
|
||||
override fun isFinished(): Boolean = inner.isFinished
|
||||
override fun attachError(throwable: Throwable) {
|
||||
|
||||
Reference in New Issue
Block a user