Skip to content

Commit 4ee122b

Browse files
souredoutlookimatwawanamattjohnsonpintbruno-garcia
authored
dotnet performance clarify GetSpan (#5078)
Co-authored-by: Isabel <[email protected]> Co-authored-by: Matt Johnson-Pint <[email protected]> Co-authored-by: Bruno Garcia <[email protected]>
1 parent bc18c11 commit 4ee122b

File tree

1 file changed

+1
-1
lines changed
  • src/includes/performance/retrieve-transaction

1 file changed

+1
-1
lines changed

src/includes/performance/retrieve-transaction/dotnet.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Retrieve a Transaction
22

3-
In cases where you want to attach Spans to an already ongoing Transaction you can use `Sentry#GetSpan`. This method will return a `SentryTransaction` in case there is a running Transaction or a `Span` in case there is already a running Span, otherwise it returns `null`.
3+
In cases where you want to attach Spans to an already ongoing Transaction you can use `SentrySdk.GetSpan()`. If there is a running Transaction or Span currently on the scope, this method will return a `SentryTransaction` or `Span`; otherwise, it returns `null`.
44

55
```csharp
66
using Sentry;

0 commit comments

Comments
 (0)