New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/shim-opentracing

Package Overview
Dependencies
Maintainers
4
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/shim-opentracing - npm Package Compare versions

Comparing version 0.16.0 to 0.16.1-alpha.10

1

build/src/index.js

@@ -18,4 +18,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.TracerShim = void 0;
var shim_1 = require("./shim");
Object.defineProperty(exports, "TracerShim", { enumerable: true, get: function () { return shim_1.TracerShim; } });
//# sourceMappingURL=index.js.map

10

build/src/shim.d.ts
import * as api from '@opentelemetry/api';
import * as opentracing from 'opentracing';
import { Attributes, AttributeValue } from '@opentelemetry/api';
import { SpanAttributes, SpanAttributeValue } from '@opentelemetry/api';
/**

@@ -81,3 +81,3 @@ * SpanContextShim wraps a {@link types.SpanContext} and implements the

*/
logEvent(eventName: string, payload?: Attributes): void;
logEvent(eventName: string, payload?: SpanAttributes): void;
/**

@@ -87,3 +87,3 @@ * Logs a set of key value pairs. Since OpenTelemetry only supports events,

*/
log(keyValuePairs: Attributes, _timestamp?: number): this;
log(keyValuePairs: SpanAttributes, _timestamp?: number): this;
/**

@@ -93,3 +93,3 @@ * Adds a set of tags to the span.

*/
addTags(keyValueMap: Attributes): this;
addTags(keyValueMap: SpanAttributes): this;
/**

@@ -101,3 +101,3 @@ * Sets a tag on the span, updating the value if the key is already present

*/
setTag(key: string, value: AttributeValue): this;
setTag(key: string, value: SpanAttributeValue): this;
getBaggageItem(key: string): string | undefined;

@@ -104,0 +104,0 @@ setBaggageItem(key: string, value: string): this;

@@ -21,2 +21,3 @@ "use strict";

const opentracing = require("opentracing");
const api_1 = require("@opentelemetry/api");
function translateReferences(references) {

@@ -91,8 +92,6 @@ const links = [];

var _a;
return (_a = this._baggage[key]) === null || _a === void 0 ? void 0 : _a.value;
return (_a = this._baggage.getEntry(key)) === null || _a === void 0 ? void 0 : _a.value;
}
setBaggageItem(key, value) {
this._baggage = Object.assign({}, this._baggage, {
[key]: { value },
});
this._baggage = this._baggage.setEntry(key, { value });
}

@@ -113,3 +112,3 @@ }

const span = this._tracer.startSpan(name, translateSpanOptions(options), getContextWithParent(options));
let baggage = {};
let baggage = api_1.createBaggage();
if (options.childOf instanceof SpanShim) {

@@ -157,3 +156,3 @@ const shimContext = options.childOf.context();

}
return new SpanContextShim(spanContext, baggage || {});
return new SpanContextShim(spanContext, baggage || api_1.createBaggage());
}

@@ -249,3 +248,3 @@ case opentracing.FORMAT_BINARY: {

(value === true || value === 'true')) {
this._span.setStatus({ code: api.StatusCode.ERROR });
this._span.setStatus({ code: api.SpanStatusCode.ERROR });
return this;

@@ -252,0 +251,0 @@ }

{
"name": "@opentelemetry/shim-opentracing",
"version": "0.16.0",
"version": "0.16.1-alpha.10+cacbbdca",
"description": "OpenTracing to OpenTelemetry shim",

@@ -41,7 +41,7 @@ "main": "build/src/index.js",

"devDependencies": {
"@opentelemetry/tracing": "^0.16.0",
"@opentelemetry/tracing": "^0.16.1-alpha.10+cacbbdca",
"@types/mocha": "8.2.0",
"@types/node": "14.14.20",
"codecov": "3.8.1",
"gts": "2.0.2",
"gts": "3.1.0",
"mocha": "7.2.0",

@@ -54,10 +54,10 @@ "nyc": "15.1.0",

"tslint-microsoft-contrib": "6.2.0",
"typescript": "3.9.7"
"typescript": "4.1.3"
},
"dependencies": {
"@opentelemetry/api": "^0.16.0",
"@opentelemetry/core": "^0.16.0",
"@opentelemetry/core": "^0.16.1-alpha.10+cacbbdca",
"opentracing": "^0.14.4"
},
"gitHead": "e68863f8e63854b08ad13fb54677294ac6d6b681"
"gitHead": "cacbbdca0e89d31e2e0b10a8ff5fb86d7a714906"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc