Skip to content

Commit

Permalink
dotnet performance clarify GetSpan (#5078)
Browse files Browse the repository at this point in the history
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Matt Johnson-Pint <mattjohnsonpint@gmail.com>
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
  • Loading branch information
4 people authored Jun 1, 2022
1 parent bc18c11 commit 4ee122b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/performance/retrieve-transaction/dotnet.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Retrieve a Transaction

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`.
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`.

```csharp
using Sentry;
Expand Down

1 comment on commit 4ee122b

@vercel
Copy link

@vercel vercel bot commented on 4ee122b Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sentry-docs – ./

sentry-docs-git-master.sentry.dev
sentry-docs.sentry.dev
docs.sentry.io

Please sign in to comment.