From 4ee122ba3befb1b602dab35291ecce784b85cea3 Mon Sep 17 00:00:00 2001 From: Nicholas Meisenheimer <76002357+souredoutlook@users.noreply.github.com> Date: Wed, 1 Jun 2022 08:23:37 -0400 Subject: [PATCH] dotnet performance clarify GetSpan (#5078) Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com> Co-authored-by: Matt Johnson-Pint Co-authored-by: Bruno Garcia --- src/includes/performance/retrieve-transaction/dotnet.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/includes/performance/retrieve-transaction/dotnet.mdx b/src/includes/performance/retrieve-transaction/dotnet.mdx index 03e2bf18240af..50b4feed2090f 100644 --- a/src/includes/performance/retrieve-transaction/dotnet.mdx +++ b/src/includes/performance/retrieve-transaction/dotnet.mdx @@ -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;