Fix a potential crash caused by using old Sentry transactions. (#5459)

* Fix a deprecation warning.

* Remove unused method.

* Fix a crash caused by using old Sentry transactions.
This commit is contained in:
Doug
2026-04-21 17:14:17 +01:00
committed by GitHub
parent e373969354
commit 3c2702452c
2 changed files with 10 additions and 6 deletions
@@ -75,6 +75,10 @@ class Signposter {
transactions[transactionName] = nil
}
func resetTransactions() {
transactions.removeAll()
}
// MARK: - Spans
func addSpan(_ spanName: SpanName, toTransaction transactionName: TransactionName) -> Span? {