@opentelemetry/shim-opentracing
Advanced tools
Comparing version 0.11.1-alpha.36 to 0.11.1-alpha.44
@@ -47,6 +47,6 @@ "use strict"; | ||
if (options.childOf instanceof SpanShim) { | ||
return core_1.setActiveSpan(api.context.active(), options.childOf.getSpan()); | ||
return api.setActiveSpan(api.context.active(), options.childOf.getSpan()); | ||
} | ||
else if (options.childOf instanceof SpanContextShim) { | ||
return core_1.setExtractedSpanContext(api.context.active(), options.childOf.getSpanContext()); | ||
return api.setExtractedSpanContext(api.context.active(), options.childOf.getSpanContext()); | ||
} | ||
@@ -135,3 +135,3 @@ } | ||
case opentracing.FORMAT_TEXT_MAP: { | ||
api.propagation.inject(carrier, api.defaultSetter, core_1.setCorrelationContext(core_1.setExtractedSpanContext(api.ROOT_CONTEXT, oTelSpanContext), oTelSpanCorrelationContext)); | ||
api.propagation.inject(carrier, api.defaultSetter, core_1.setCorrelationContext(api.setExtractedSpanContext(api.ROOT_CONTEXT, oTelSpanContext), oTelSpanCorrelationContext)); | ||
return; | ||
@@ -152,3 +152,3 @@ } | ||
const context = api.propagation.extract(carrier); | ||
const spanContext = core_1.getExtractedSpanContext(context); | ||
const spanContext = api.getExtractedSpanContext(context); | ||
const correlationContext = core_1.getCorrelationContext(context); | ||
@@ -155,0 +155,0 @@ if (!spanContext) { |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.11.1-alpha.36+6eb157c6"; | ||
export declare const VERSION = "0.11.1-alpha.44+240f852c"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.11.1-alpha.36+6eb157c6'; | ||
exports.VERSION = '0.11.1-alpha.44+240f852c'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/shim-opentracing", | ||
"version": "0.11.1-alpha.36+6eb157c6", | ||
"version": "0.11.1-alpha.44+240f852c", | ||
"description": "OpenTracing to OpenTelemetry shim", | ||
@@ -43,3 +43,3 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@opentelemetry/tracing": "^0.11.1-alpha.36+6eb157c6", | ||
"@opentelemetry/tracing": "^0.11.1-alpha.44+240f852c", | ||
"@types/mocha": "8.0.2", | ||
@@ -59,7 +59,7 @@ "@types/node": "14.0.27", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.11.1-alpha.36+6eb157c6", | ||
"@opentelemetry/core": "^0.11.1-alpha.36+6eb157c6", | ||
"@opentelemetry/api": "^0.11.1-alpha.44+240f852c", | ||
"@opentelemetry/core": "^0.11.1-alpha.44+240f852c", | ||
"opentracing": "^0.14.4" | ||
}, | ||
"gitHead": "6eb157c66925fe84b4960f247a86678441f3cb60" | ||
"gitHead": "240f852cc41707c751f28811b7ce3d243382e3dd" | ||
} |
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
35738