Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def glide = "4.16.0"
def bigImageViewer = "1.8.1"
def jjwt = "0.11.5"
def vanniktechEmoji = "0.16.0"
def sentry = "6.18.1"
def sentry = "8.31.0"
def fragment = "1.8.6"
// Testing
def mockk = "1.13.11"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import io.sentry.ISpan
import io.sentry.ITransaction
import io.sentry.Sentry
import io.sentry.SpanStatus
import io.sentry.TransactionOptions
import org.matrix.android.sdk.api.metrics.SyncDurationMetricPlugin
import java.util.EmptyStackException
import java.util.Stack
Expand Down Expand Up @@ -58,7 +59,13 @@ class SentrySyncDurationMetrics @Inject constructor() : SyncDurationMetricPlugin

override fun startTransaction() {
if (Sentry.isEnabled()) {
transaction = Sentry.startTransaction("sync_response_handler", "task", true)
transaction = Sentry.startTransaction(
"sync_response_handler",
"task",
TransactionOptions().apply {
isBindToScope = true
},
)
logTransaction("Sentry transaction started")
}
}
Expand Down
Loading