Skip to content

Commit

Permalink
fix lint and other errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wconti27 committed Jan 3, 2025
1 parent 4f7fe84 commit 504b584
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/datadog-plugin-http/src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -211,8 +211,4 @@ function extractSessionDetails (options) {
return { host, port }
}

function startsWith (searchString) {
return value => String(value).startsWith(searchString)
}

module.exports = HttpClientPlugin
3 changes: 2 additions & 1 deletion packages/dd-trace/src/opentracing/propagation/text_map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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-')
Expand Down

0 comments on commit 504b584

Please sign in to comment.