@opentelemetry/web
Advanced tools
Comparing version 0.20.0 to 0.20.1-alpha.3
@@ -27,6 +27,7 @@ import { Context, ContextManager } from '@opentelemetry/api'; | ||
* Binds a the certain context or the active one to the target function and then returns the target | ||
* @param target | ||
* @param context | ||
* @param context A context (span) to be bind to target | ||
* @param target a function or event emitter. When target or one of its callbacks is called, | ||
* the provided context will be used as the active context for the duration of the call. | ||
*/ | ||
bind<T>(target: T, context?: Context): T; | ||
bind<T>(context: Context, target: T): T; | ||
/** | ||
@@ -33,0 +34,0 @@ * Disable the context manager (clears the current context) |
@@ -69,7 +69,7 @@ /* | ||
* Binds a the certain context or the active one to the target function and then returns the target | ||
* @param target | ||
* @param context | ||
* @param context A context (span) to be bind to target | ||
* @param target a function or event emitter. When target or one of its callbacks is called, | ||
* the provided context will be used as the active context for the duration of the call. | ||
*/ | ||
StackContextManager.prototype.bind = function (target, context) { | ||
if (context === void 0) { context = ROOT_CONTEXT; } | ||
StackContextManager.prototype.bind = function (context, target) { | ||
// if no specific context to propagate is given, we use the current one | ||
@@ -76,0 +76,0 @@ if (context === undefined) { |
@@ -27,6 +27,7 @@ import { Context, ContextManager } from '@opentelemetry/api'; | ||
* Binds a the certain context or the active one to the target function and then returns the target | ||
* @param target | ||
* @param context | ||
* @param context A context (span) to be bind to target | ||
* @param target a function or event emitter. When target or one of its callbacks is called, | ||
* the provided context will be used as the active context for the duration of the call. | ||
*/ | ||
bind<T>(target: T, context?: Context): T; | ||
bind<T>(context: Context, target: T): T; | ||
/** | ||
@@ -33,0 +34,0 @@ * Disable the context manager (clears the current context) |
@@ -61,6 +61,7 @@ "use strict"; | ||
* Binds a the certain context or the active one to the target function and then returns the target | ||
* @param target | ||
* @param context | ||
* @param context A context (span) to be bind to target | ||
* @param target a function or event emitter. When target or one of its callbacks is called, | ||
* the provided context will be used as the active context for the duration of the call. | ||
*/ | ||
bind(target, context = api_1.ROOT_CONTEXT) { | ||
bind(context, target) { | ||
// if no specific context to propagate is given, we use the current one | ||
@@ -67,0 +68,0 @@ if (context === undefined) { |
{ | ||
"name": "@opentelemetry/web", | ||
"version": "0.20.0", | ||
"version": "0.20.1-alpha.3+d4df2f7e", | ||
"description": "OpenTelemetry Web Tracer", | ||
@@ -49,6 +49,6 @@ "main": "build/src/index.js", | ||
"@babel/core": "7.14.0", | ||
"@opentelemetry/api": "^0.20.0", | ||
"@opentelemetry/context-zone": "0.20.0", | ||
"@opentelemetry/propagator-b3": "0.20.0", | ||
"@opentelemetry/resources": "0.20.0", | ||
"@opentelemetry/api": "^0.21.0", | ||
"@opentelemetry/context-zone": "^0.20.1-alpha.3+d4df2f7e", | ||
"@opentelemetry/propagator-b3": "^0.20.1-alpha.3+d4df2f7e", | ||
"@opentelemetry/resources": "^0.20.1-alpha.3+d4df2f7e", | ||
"@types/jquery": "3.5.5", | ||
@@ -82,10 +82,10 @@ "@types/mocha": "8.2.2", | ||
"peerDependencies": { | ||
"@opentelemetry/api": "^0.20.0" | ||
"@opentelemetry/api": "^0.21.0" | ||
}, | ||
"dependencies": { | ||
"@opentelemetry/core": "0.20.0", | ||
"@opentelemetry/semantic-conventions": "0.20.0", | ||
"@opentelemetry/tracing": "0.20.0" | ||
"@opentelemetry/core": "^0.20.1-alpha.3+d4df2f7e", | ||
"@opentelemetry/semantic-conventions": "^0.20.0", | ||
"@opentelemetry/tracing": "^0.20.1-alpha.3+d4df2f7e" | ||
}, | ||
"gitHead": "f79aef422b53f1314cb0b031651875658fc17008" | ||
"gitHead": "d4df2f7ebaaaf433bd84b568c482e2788103ab71" | ||
} |
Sorry, the diff of this file is not supported yet
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
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
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
101725
1572
1
+ Added@opentelemetry/api@0.21.0(transitive)
+ Added@opentelemetry/core@0.20.1-alpha.49(transitive)
+ Added@opentelemetry/resources@0.20.1-alpha.49(transitive)
+ Added@opentelemetry/semantic-conventions@0.20.1-alpha.49(transitive)
+ Added@opentelemetry/tracing@0.20.1-alpha.49(transitive)
- Removed@opentelemetry/core@0.20.0(transitive)
- Removed@opentelemetry/resources@0.20.0(transitive)
- Removed@opentelemetry/tracing@0.20.0(transitive)