@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.21+0ef1fc28", | ||
"version": "0.25.1-alpha.22+3acebdcc", | ||
"description": "OpenTelemetry fetch automatic instrumentation package.", | ||
@@ -18,3 +18,5 @@ "main": "build/src/index.js", | ||
"test:browser": "nyc karma start --single-run", | ||
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json" | ||
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json", | ||
"precompile": "lerna run version --scope $(npm pkg get name) --include-filtered-dependencies", | ||
"prewatch": "npm run precompile" | ||
}, | ||
@@ -52,8 +54,7 @@ "keywords": [ | ||
"@opentelemetry/api": "^1.0.2", | ||
"@opentelemetry/context-zone": "^0.25.1-alpha.21+0ef1fc28", | ||
"@opentelemetry/propagator-b3": "^0.25.1-alpha.21+0ef1fc28", | ||
"@opentelemetry/sdk-trace-base": "^0.25.1-alpha.21+0ef1fc28", | ||
"@opentelemetry/context-zone": "^0.25.0", | ||
"@opentelemetry/propagator-b3": "^0.25.0", | ||
"@opentelemetry/sdk-trace-base": "^0.25.0", | ||
"@types/mocha": "8.2.3", | ||
"@types/node": "14.17.9", | ||
"@types/shimmer": "1.0.2", | ||
"@types/node": "14.17.11", | ||
"@types/sinon": "10.0.2", | ||
@@ -85,8 +86,8 @@ "@types/webpack-env": "1.16.2", | ||
"dependencies": { | ||
"@opentelemetry/core": "^0.25.1-alpha.21+0ef1fc28", | ||
"@opentelemetry/instrumentation": "^0.25.1-alpha.21+0ef1fc28", | ||
"@opentelemetry/sdk-trace-web": "^0.25.1-alpha.21+0ef1fc28", | ||
"@opentelemetry/semantic-conventions": "^0.25.1-alpha.21+0ef1fc28" | ||
"@opentelemetry/core": "^0.25.0", | ||
"@opentelemetry/instrumentation": "^0.25.1-alpha.22+3acebdcc", | ||
"@opentelemetry/sdk-trace-web": "^0.25.0", | ||
"@opentelemetry/semantic-conventions": "^0.25.0" | ||
}, | ||
"gitHead": "0ef1fc28d366b74d98b73b5d6334ffdc75342fe2" | ||
"gitHead": "3acebdcc070cf736e932c9ab9b683eb047c5cabc" | ||
} |
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
83694
1.4%28
-3.45%1144
0.88%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated