@opentelemetry/context-zone-peer-dep
Advanced tools
Comparing version 0.12.1-alpha.54 to 0.13.0
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.12.1-alpha.54+3f72613a"; | ||
export declare const VERSION = "0.13.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.12.1-alpha.54+3f72613a'; | ||
exports.VERSION = '0.13.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/context-zone-peer-dep", | ||
"version": "0.12.1-alpha.54+3f72613a", | ||
"version": "0.13.0", | ||
"description": "OpenTelemetry Context Zone with peer dependency for zone.js", | ||
@@ -45,13 +45,13 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@babel/core": "7.11.1", | ||
"@types/mocha": "8.0.2", | ||
"@types/node": "14.0.27", | ||
"@types/sinon": "9.0.4", | ||
"@types/webpack-env": "1.15.2", | ||
"@babel/core": "7.12.9", | ||
"@types/mocha": "8.0.4", | ||
"@types/node": "14.14.10", | ||
"@types/sinon": "9.0.9", | ||
"@types/webpack-env": "1.16.0", | ||
"@types/zone.js": "0.5.12", | ||
"babel-loader": "8.1.0", | ||
"codecov": "3.7.2", | ||
"babel-loader": "8.2.2", | ||
"codecov": "3.8.1", | ||
"gts": "2.0.2", | ||
"istanbul-instrumenter-loader": "3.0.1", | ||
"karma": "5.1.1", | ||
"karma": "5.2.3", | ||
"karma-chrome-launcher": "3.1.0", | ||
@@ -65,19 +65,19 @@ "karma-coverage-istanbul-reporter": "3.0.3", | ||
"rimraf": "3.0.2", | ||
"sinon": "9.0.3", | ||
"ts-loader": "8.0.2", | ||
"ts-mocha": "7.0.0", | ||
"sinon": "9.2.1", | ||
"ts-loader": "8.0.11", | ||
"ts-mocha": "8.0.0", | ||
"ts-node": "9.0.0", | ||
"typescript": "3.9.7", | ||
"webpack": "4.44.1", | ||
"webpack-cli": "3.3.12", | ||
"zone.js": "0.10.3" | ||
"webpack": "4.44.2", | ||
"webpack-cli": "4.2.0", | ||
"zone.js": "0.11.3" | ||
}, | ||
"dependencies": { | ||
"@opentelemetry/context-base": "^0.12.1-alpha.54+3f72613a" | ||
"@opentelemetry/context-base": "^0.13.0" | ||
}, | ||
"peerDependencies": { | ||
"zone.js": "^0.10.2" | ||
"zone.js": "^0.10.2 || ^0.11.0" | ||
}, | ||
"sideEffects": false, | ||
"gitHead": "3f72613a36b6f97555a0fa7481755cf8b6cce1a7" | ||
"gitHead": "86cbd6798f9318c5920f9d9055f289a1c3f26500" | ||
} |
@@ -15,2 +15,5 @@ # OpenTelemetry Context Zone Peer Dependency | ||
Please note that due to an issue with `zone.js`, the `ZoneContextManager` does not work with JS code targeting `ES2017+`. | ||
In order to use the `ZoneContextManager`, please transpile back to `ES2015`. | ||
```bash | ||
@@ -24,11 +27,13 @@ npm install --save @opentelemetry/context-zone-peer-dep | ||
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/tracing'; | ||
import { WebTracer } from '@opentelemetry/web'; | ||
import { WebTracerProvider } from '@opentelemetry/web'; | ||
import { ZoneContextManager } from '@opentelemetry/context-zone-peer-dep'; | ||
const webTracerWithZone = new WebTracer({ | ||
const providerWithZone = new WebTracerProvider(); | ||
providerWithZone.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter())); | ||
providerWithZone.register({ | ||
contextManager: new ZoneContextManager() | ||
}); | ||
webTracerWithZone.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter())); | ||
// Example how the ZoneContextManager keeps the reference to the correct context during async operations | ||
const webTracerWithZone = providerWithZone.getTracer('default'); | ||
const span1 = webTracerWithZone.startSpan('foo1'); | ||
@@ -35,0 +40,0 @@ webTracerWithZone.withSpan(span1, () => { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
38374
79
0
+ Added@opentelemetry/context-base@0.13.0(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedzone.js@0.11.8(transitive)
- Removed@opentelemetry/context-base@0.12.1-alpha.54(transitive)
- Removedzone.js@0.10.3(transitive)