@opentelemetry/shim-opentracing
Advanced tools
Comparing version 0.12.1-alpha.54 to 0.13.0
@@ -86,3 +86,3 @@ import * as api from '@opentelemetry/api'; | ||
*/ | ||
log(keyValuePairs: Attributes, timestamp?: number): this; | ||
log(keyValuePairs: Attributes, _timestamp?: number): this; | ||
/** | ||
@@ -89,0 +89,0 @@ * Adds a set of tags to the span. |
@@ -134,3 +134,3 @@ "use strict"; | ||
case opentracing.FORMAT_TEXT_MAP: { | ||
api.propagation.inject(carrier, api.defaultSetter, core_1.setCorrelationContext(api.setExtractedSpanContext(api.ROOT_CONTEXT, oTelSpanContext), oTelSpanCorrelationContext)); | ||
api.propagation.inject(carrier, api.defaultTextMapSetter, core_1.setCorrelationContext(api.setExtractedSpanContext(api.ROOT_CONTEXT, oTelSpanContext), oTelSpanCorrelationContext)); | ||
return; | ||
@@ -147,3 +147,2 @@ } | ||
_extract(format, carrier) { | ||
var _a; | ||
switch (format) { | ||
@@ -153,3 +152,3 @@ case opentracing.FORMAT_HTTP_HEADERS: | ||
const context = api.propagation.extract(carrier); | ||
const spanContext = (_a = api.getActiveSpan(context)) === null || _a === void 0 ? void 0 : _a.context(); | ||
const spanContext = api.getParentSpanContext(context); | ||
const correlationContext = core_1.getCorrelationContext(context); | ||
@@ -228,3 +227,3 @@ if (!spanContext) { | ||
*/ | ||
log(keyValuePairs, timestamp) { | ||
log(keyValuePairs, _timestamp) { | ||
// @todo: Handle timestamp | ||
@@ -251,3 +250,3 @@ this._span.addEvent('log', keyValuePairs); | ||
(value === true || value === 'true')) { | ||
this._span.setStatus({ code: api.CanonicalCode.UNKNOWN }); | ||
this._span.setStatus({ code: api.StatusCode.ERROR }); | ||
return this; | ||
@@ -254,0 +253,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/shim-opentracing", | ||
"version": "0.12.1-alpha.54+3f72613a", | ||
"version": "0.13.0", | ||
"description": "OpenTracing to OpenTelemetry shim", | ||
@@ -43,6 +43,6 @@ "main": "build/src/index.js", | ||
"devDependencies": { | ||
"@opentelemetry/tracing": "^0.12.1-alpha.54+3f72613a", | ||
"@types/mocha": "8.0.2", | ||
"@types/node": "14.0.27", | ||
"codecov": "3.7.2", | ||
"@opentelemetry/tracing": "^0.13.0", | ||
"@types/mocha": "8.0.4", | ||
"@types/node": "14.14.10", | ||
"codecov": "3.8.1", | ||
"gts": "2.0.2", | ||
@@ -52,3 +52,3 @@ "mocha": "7.2.0", | ||
"rimraf": "3.0.2", | ||
"ts-mocha": "7.0.0", | ||
"ts-mocha": "8.0.0", | ||
"ts-node": "9.0.0", | ||
@@ -60,7 +60,7 @@ "tslint-consistent-codestyle": "1.16.0", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.12.1-alpha.54+3f72613a", | ||
"@opentelemetry/core": "^0.12.1-alpha.54+3f72613a", | ||
"@opentelemetry/api": "^0.13.0", | ||
"@opentelemetry/core": "^0.13.0", | ||
"opentracing": "^0.14.4" | ||
}, | ||
"gitHead": "3f72613a36b6f97555a0fa7481755cf8b6cce1a7" | ||
"gitHead": "86cbd6798f9318c5920f9d9055f289a1c3f26500" | ||
} |
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
0
35632
410
+ Added@opentelemetry/api@0.13.0(transitive)
+ Added@opentelemetry/context-base@0.13.0(transitive)
+ Added@opentelemetry/core@0.13.0(transitive)
- Removed@opentelemetry/api@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/context-base@0.12.1-alpha.54(transitive)
- Removed@opentelemetry/core@0.12.1-alpha.54(transitive)
Updated@opentelemetry/api@^0.13.0
Updated@opentelemetry/core@^0.13.0