Add Sentry transaction so we can check how long it takes to vacuum and if there were any errors when doing it
This commit is contained in:
parent
09cab10abc
commit
7e3acd6b58
4 changed files with 22 additions and 11 deletions
|
|
@ -23,6 +23,9 @@ class SentryAnalyticsTransaction private constructor(span: ISpan) : AnalyticsTra
|
|||
override fun setData(key: String, value: Any) = inner.setData(key, value)
|
||||
override fun traceId(): String? = inner.toSentryTrace().value
|
||||
override fun isFinished(): Boolean = inner.isFinished
|
||||
override fun attachError(throwable: Throwable) {
|
||||
inner.throwable = throwable
|
||||
}
|
||||
override fun finish() {
|
||||
val name = if (inner is ITransaction) inner.name else inner.operation
|
||||
Timber.d("Finishing transaction: $name")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue