You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code sample for retrieving the current span was wrong. Instead of
SentrySDK.span it stated SentrySDK.getSpan(), which doesn't
exist in the SDK. This is fixed now.
Copy file name to clipboardExpand all lines: src/includes/performance/retrieve-transaction/apple.mdx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
## Retrieve a Transaction
2
2
3
-
In cases where you want to attach Spans to an already ongoing Transaction you can use `Sentry#GetSpan`. This method will return a `SpanProtocol` in case there is a running Transaction or a `Span` in case there is already a running Span, otherwise it returns `nil`.
3
+
In cases where you want to attach Spans to an already ongoing Transaction you can use `Sentry.span`. This method will return a `SpanProtocol` in case there is a running Transaction or a `Span` in case there is already a running Span, otherwise it returns `nil`.
0 commit comments