Skip to content

Commit

Permalink
Disable automatic instrumentation for zipkin exporter outbound calls (#…
Browse files Browse the repository at this point in the history
…65)

Co-authored-by: Paulo Janotti <[email protected]>
  • Loading branch information
RassK and pjanotti authored Mar 3, 2021
1 parent 06269b9 commit b173d87
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Datadog.Trace/Agent/ZipkinApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public async Task<bool> SendTracesAsync(Span[][] traces)
request.Method = "POST";
request.ContentType = "application/json";

// Disable automatic instrumentation for Zipkin exporter
request.Headers.Add(HttpHeaderNames.TracingEnabled, "false");

using (var requestStream = await request.GetRequestStreamAsync().ConfigureAwait(false))
{
var serializer = new ZipkinSerializer();
Expand Down

0 comments on commit b173d87

Please sign in to comment.