Skip to content

Commit

Permalink
use the tracer override if specified (oversight from #1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspimentel committed Oct 28, 2021
1 parent 6715930 commit 57edb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tracer/src/Datadog.Trace/Agent/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private async Task<bool> SendTracesAsync(ArraySegment<byte> traces, int numberOf
tracer.AgentVersion = version ?? string.Empty;
}

if (response.ContentLength != 0 && Tracer.Instance.Sampler != null)
if (response.ContentLength != 0 && tracer.Sampler != null)
{
var responseContent = await response.ReadAsStringAsync().ConfigureAwait(false);

Expand Down

0 comments on commit 57edb48

Please sign in to comment.