@opentelemetry/context-zone
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", | ||
"version": "0.12.1-alpha.54+3f72613a", | ||
"version": "0.13.0", | ||
"description": "OpenTelemetry Context Zone", | ||
@@ -42,11 +42,11 @@ "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-loader": "8.1.0", | ||
"codecov": "3.7.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", | ||
"babel-loader": "8.2.2", | ||
"codecov": "3.8.1", | ||
"gts": "2.0.2", | ||
"karma": "5.1.1", | ||
"karma": "5.2.3", | ||
"karma-chrome-launcher": "3.1.0", | ||
@@ -59,17 +59,17 @@ "karma-mocha": "2.0.1", | ||
"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", | ||
"webpack-merge": "5.1.1" | ||
"webpack": "4.44.2", | ||
"webpack-cli": "4.2.0", | ||
"webpack-merge": "5.4.0" | ||
}, | ||
"dependencies": { | ||
"@opentelemetry/context-zone-peer-dep": "^0.12.1-alpha.54+3f72613a", | ||
"zone.js": "^0.10.2" | ||
"@opentelemetry/context-zone-peer-dep": "^0.13.0", | ||
"zone.js": "^0.11.0" | ||
}, | ||
"sideEffects": true, | ||
"gitHead": "3f72613a36b6f97555a0fa7481755cf8b6cce1a7" | ||
"gitHead": "86cbd6798f9318c5920f9d9055f289a1c3f26500" | ||
} |
@@ -23,11 +23,13 @@ # OpenTelemetry Context Zone | ||
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/tracing'; | ||
import { WebTracer } from '@opentelemetry/web'; | ||
import { WebTracerProvider } from '@opentelemetry/web'; | ||
import { ZoneContextManager } from '@opentelemetry/context-zone'; | ||
const webTracerWithZone = new WebTracer({ | ||
const providerWithZone = new WebTracerProvider(); | ||
providerWithZone.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter())); | ||
provider.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'); | ||
@@ -34,0 +36,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
19463
76
0
+ Added@opentelemetry/context-base@0.13.0(transitive)
+ Added@opentelemetry/context-zone-peer-dep@0.13.0(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addedzone.js@0.11.8(transitive)
- Removed@opentelemetry/context-base@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/context-zone-peer-dep@0.12.1-alpha.54(transitive)
- Removedzone.js@0.10.3(transitive)
Updatedzone.js@^0.11.0