diff --git a/packages/datadog-plugin-http/src/client.js b/packages/datadog-plugin-http/src/client.js index f38427318f0..55a025f4970 100644 --- a/packages/datadog-plugin-http/src/client.js +++ b/packages/datadog-plugin-http/src/client.js @@ -58,7 +58,7 @@ class HttpClientPlugin extends ClientPlugin { span._spanContext._trace.record = false } - if (!this.config.propagationFilter(uri)) { + if (this.config.propagationFilter(uri)) { this.tracer.inject(span, HTTP_HEADERS, options.headers) } @@ -211,8 +211,4 @@ function extractSessionDetails (options) { return { host, port } } -function startsWith (searchString) { - return value => String(value).startsWith(searchString) -} - module.exports = HttpClientPlugin diff --git a/packages/dd-trace/src/opentracing/propagation/text_map.js b/packages/dd-trace/src/opentracing/propagation/text_map.js index 1f658886d93..e54a8fc94f8 100644 --- a/packages/dd-trace/src/opentracing/propagation/text_map.js +++ b/packages/dd-trace/src/opentracing/propagation/text_map.js @@ -267,7 +267,8 @@ class TextMapPropagator { _injectAwsXrayContext (spanContext, carrier) { // injects AWS Trace Header (X-Amzn-Trace-Id) to carrier // - // ex: 'Root=1-00000000-00000000fffffffffffffffe;Parent=ffffffffffffffff;Sampled=1;_dd.origin=fakeOrigin;baggage_k=baggage_v...; + // ex: 'Root=1-00000000-00000000fffffffffffffffe;Parent=ffffffffffffffff;... + // ...Sampled=1;_dd.origin=fakeOrigin;baggage_k=baggage_v...; // // Header Format: // 'Root=1-' (always uses '1-')