@opentelemetry/instrumentation-fetch
Advanced tools
Comparing version
@@ -108,2 +108,7 @@ /* | ||
} | ||
else if (options.headers instanceof Headers) { | ||
api.propagation.inject(api.context.active(), options.headers, { | ||
set: function (h, k, v) { return h.set(k, typeof v === 'string' ? v : String(v)); }, | ||
}); | ||
} | ||
else { | ||
@@ -110,0 +115,0 @@ var headers = {}; |
@@ -93,2 +93,7 @@ "use strict"; | ||
} | ||
else if (options.headers instanceof Headers) { | ||
api.propagation.inject(api.context.active(), options.headers, { | ||
set: (h, k, v) => h.set(k, typeof v === 'string' ? v : String(v)), | ||
}); | ||
} | ||
else { | ||
@@ -95,0 +100,0 @@ const headers = {}; |
{ | ||
"name": "@opentelemetry/instrumentation-fetch", | ||
"version": "0.25.1-alpha.7+dfb597de", | ||
"version": "0.25.1-alpha.9+dbfabd2b", | ||
"description": "OpenTelemetry fetch automatic instrumentation package.", | ||
@@ -53,3 +53,3 @@ "main": "build/src/index.js", | ||
"@opentelemetry/propagator-b3": "^0.25.0", | ||
"@opentelemetry/sdk-trace-base": "^0.25.1-alpha.7+dfb597de", | ||
"@opentelemetry/sdk-trace-base": "^0.25.0", | ||
"@types/mocha": "8.2.3", | ||
@@ -85,6 +85,6 @@ "@types/node": "14.17.11", | ||
"@opentelemetry/instrumentation": "^0.25.0", | ||
"@opentelemetry/sdk-trace-web": "^0.25.1-alpha.7+dfb597de", | ||
"@opentelemetry/sdk-trace-web": "^0.25.0", | ||
"@opentelemetry/semantic-conventions": "^0.25.0" | ||
}, | ||
"gitHead": "dfb597def863b15b37b24d965018e8c92d2ee70c" | ||
"gitHead": "dbfabd2bff113b6cfd17096b12f287472c30c751" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
83536
1.36%1144
0.88%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed