Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentelemetry/tracing

Package Overview
Dependencies
Maintainers
4
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/tracing - npm Package Compare versions

Comparing version 0.11.1-alpha.36 to 0.11.1-alpha.44

2

build/src/export/BatchSpanProcessor.js

@@ -90,3 +90,3 @@ "use strict";

// prevent downstream exporter calls from generating spans
api_1.context.with(core_1.suppressInstrumentation(api_1.context.active()), () => {
api_1.context.with(api_1.suppressInstrumentation(api_1.context.active()), () => {
this._exporter.export(this._finishedSpans, result => {

@@ -93,0 +93,0 @@ this._finishedSpans = [];

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

const api_1 = require("@opentelemetry/api");
const core_1 = require("@opentelemetry/core");
/**

@@ -45,3 +44,3 @@ * An implementation of the {@link SpanProcessor} that converts the {@link Span}

// prevent downstream exporter calls from generating spans
api_1.context.with(core_1.suppressInstrumentation(api_1.context.active()), () => {
api_1.context.with(api_1.suppressInstrumentation(api_1.context.active()), () => {
this._exporter.export([span], () => { });

@@ -48,0 +47,0 @@ });

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

exports.MultiSpanProcessor = void 0;
const core_1 = require("@opentelemetry/core");
/**

@@ -33,6 +34,11 @@ * Implementation of the {@link SpanProcessor} that simply forwards all

}
return new Promise((resolve, reject) => {
Promise.all(promises).then(() => {
return new Promise(resolve => {
Promise.all(promises)
.then(() => {
resolve();
}, reject);
})
.catch(error => {
core_1.globalErrorHandler(error || new Error('MultiSpanProcessor: forceFlush failed'));
resolve();
});
});

@@ -39,0 +45,0 @@ }

@@ -46,3 +46,3 @@ "use strict";

var _a, _b;
if (core_1.isInstrumentationSuppressed(context)) {
if (api.isInstrumentationSuppressed(context)) {
this.logger.debug('Instrumentation suppressed, returning Noop Span');

@@ -90,3 +90,3 @@ return api.NOOP_SPAN;

// Get the current Span from the context or null if none found.
return core_1.getActiveSpan(ctx);
return api.getActiveSpan(ctx);
}

@@ -98,3 +98,3 @@ /**

// Set given span to context.
return api.context.with(core_1.setActiveSpan(api.context.active(), span), fn);
return api.context.with(api.setActiveSpan(api.context.active(), span), fn);
}

@@ -105,3 +105,5 @@ /**

bind(target, span) {
return api.context.bind(target, span ? core_1.setActiveSpan(api.context.active(), span) : api.context.active());
return api.context.bind(target, span
? api.setActiveSpan(api.context.active(), span)
: api.context.active());
}

@@ -129,3 +131,3 @@ /** Returns the active {@link TraceParams}. */

return getContext(options.parent);
return core_1.getParentSpanContext(context);
return api.getParentSpanContext(context);
}

@@ -132,0 +134,0 @@ function getContext(span) {

@@ -32,3 +32,3 @@ "use strict";

? {
sampler: new core_1.ParentOrElseSampler(new core_1.ProbabilitySampler(otelSamplingProbability)),
sampler: new core_1.ParentOrElseSampler(new core_1.TraceIdRatioBasedSampler(otelSamplingProbability)),
}

@@ -35,0 +35,0 @@ : {}, userConfig);

@@ -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/tracing",
"version": "0.11.1-alpha.36+6eb157c6",
"version": "0.11.1-alpha.44+240f852c",
"description": "OpenTelemetry Tracing",

@@ -77,9 +77,9 @@ "main": "build/src/index.js",

"dependencies": {
"@opentelemetry/api": "^0.11.1-alpha.36+6eb157c6",
"@opentelemetry/context-base": "^0.11.1-alpha.36+6eb157c6",
"@opentelemetry/core": "^0.11.1-alpha.36+6eb157c6",
"@opentelemetry/resources": "^0.11.1-alpha.36+6eb157c6",
"@opentelemetry/semantic-conventions": "^0.11.1-alpha.36+6eb157c6"
"@opentelemetry/api": "^0.11.1-alpha.44+240f852c",
"@opentelemetry/context-base": "^0.11.0",
"@opentelemetry/core": "^0.11.1-alpha.44+240f852c",
"@opentelemetry/resources": "^0.11.1-alpha.44+240f852c",
"@opentelemetry/semantic-conventions": "^0.11.0"
},
"gitHead": "6eb157c66925fe84b4960f247a86678441f3cb60"
"gitHead": "240f852cc41707c751f28811b7ce3d243382e3dd"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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