Socket
Socket
Sign inDemoInstall

@opentelemetry/sdk-trace-base

Package Overview
Dependencies
Maintainers
3
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/sdk-trace-base - npm Package Compare versions

Comparing version 1.18.1 to 1.19.0

3

build/esm/Span.d.ts

@@ -39,3 +39,4 @@ import { Context, Exception, HrTime, Link, Span as APISpan, SpanAttributes, SpanAttributeValue, SpanContext, SpanKind, SpanStatus, TimeInput } from '@opentelemetry/api';

* */
constructor(parentTracer: Tracer, context: Context, spanName: string, spanContext: SpanContext, kind: SpanKind, parentSpanId?: string, links?: Link[], startTime?: TimeInput, _deprecatedClock?: unknown);
constructor(parentTracer: Tracer, context: Context, spanName: string, spanContext: SpanContext, kind: SpanKind, parentSpanId?: string, links?: Link[], startTime?: TimeInput, _deprecatedClock?: unknown, // keeping this argument even though it is unused to ensure backwards compatibility
attributes?: SpanAttributes);
spanContext(): SpanContext;

@@ -42,0 +43,0 @@ setAttribute(key: string, value?: SpanAttributeValue): this;

@@ -56,4 +56,4 @@ /*

* */
function Span(parentTracer, context, spanName, spanContext, kind, parentSpanId, links, startTime, _deprecatedClock // keeping this argument even though it is unused to ensure backwards compatibility
) {
function Span(parentTracer, context, spanName, spanContext, kind, parentSpanId, links, startTime, _deprecatedClock, // keeping this argument even though it is unused to ensure backwards compatibility
attributes) {
if (links === void 0) { links = []; }

@@ -86,2 +86,5 @@ this.attributes = {};

this._spanLimits = parentTracer.getSpanLimits();
if (attributes != null) {
this.setAttributes(attributes);
}
this._spanProcessor = parentTracer.getActiveSpanProcessor();

@@ -88,0 +91,0 @@ this._spanProcessor.onStart(this, context);

@@ -92,7 +92,6 @@ /*

}
var span = new Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime);
// Set initial span attributes. The attributes object may have been mutated
// by the sampler, so we sanitize the merged attributes before setting them.
var initAttributes = sanitizeAttributes(Object.assign(attributes, samplingResult.attributes));
span.setAttributes(initAttributes);
var span = new Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime, undefined, initAttributes);
return span;

@@ -99,0 +98,0 @@ };

@@ -1,2 +0,2 @@

export declare const VERSION = "1.18.1";
export declare const VERSION = "1.19.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '1.18.1';
export var VERSION = '1.19.0';
//# sourceMappingURL=version.js.map

@@ -39,3 +39,4 @@ import { Context, Exception, HrTime, Link, Span as APISpan, SpanAttributes, SpanAttributeValue, SpanContext, SpanKind, SpanStatus, TimeInput } from '@opentelemetry/api';

* */
constructor(parentTracer: Tracer, context: Context, spanName: string, spanContext: SpanContext, kind: SpanKind, parentSpanId?: string, links?: Link[], startTime?: TimeInput, _deprecatedClock?: unknown);
constructor(parentTracer: Tracer, context: Context, spanName: string, spanContext: SpanContext, kind: SpanKind, parentSpanId?: string, links?: Link[], startTime?: TimeInput, _deprecatedClock?: unknown, // keeping this argument even though it is unused to ensure backwards compatibility
attributes?: SpanAttributes);
spanContext(): SpanContext;

@@ -42,0 +43,0 @@ setAttribute(key: string, value?: SpanAttributeValue): this;

@@ -29,4 +29,4 @@ /*

* */
constructor(parentTracer, context, spanName, spanContext, kind, parentSpanId, links = [], startTime, _deprecatedClock // keeping this argument even though it is unused to ensure backwards compatibility
) {
constructor(parentTracer, context, spanName, spanContext, kind, parentSpanId, links = [], startTime, _deprecatedClock, // keeping this argument even though it is unused to ensure backwards compatibility
attributes) {
this.attributes = {};

@@ -58,2 +58,5 @@ this.links = [];

this._spanLimits = parentTracer.getSpanLimits();
if (attributes != null) {
this.setAttributes(attributes);
}
this._spanProcessor = parentTracer.getActiveSpanProcessor();

@@ -60,0 +63,0 @@ this._spanProcessor.onStart(this, context);

@@ -90,7 +90,6 @@ /*

}
const span = new Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime);
// Set initial span attributes. The attributes object may have been mutated
// by the sampler, so we sanitize the merged attributes before setting them.
const initAttributes = sanitizeAttributes(Object.assign(attributes, samplingResult.attributes));
span.setAttributes(initAttributes);
const span = new Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime, undefined, initAttributes);
return span;

@@ -97,0 +96,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "1.18.1";
export declare const VERSION = "1.19.0";
//# sourceMappingURL=version.d.ts.map

@@ -17,3 +17,3 @@ /*

// this is autogenerated file, see scripts/version-update.js
export const VERSION = '1.18.1';
export const VERSION = '1.19.0';
//# sourceMappingURL=version.js.map

@@ -39,3 +39,4 @@ import { Context, Exception, HrTime, Link, Span as APISpan, SpanAttributes, SpanAttributeValue, SpanContext, SpanKind, SpanStatus, TimeInput } from '@opentelemetry/api';

* */
constructor(parentTracer: Tracer, context: Context, spanName: string, spanContext: SpanContext, kind: SpanKind, parentSpanId?: string, links?: Link[], startTime?: TimeInput, _deprecatedClock?: unknown);
constructor(parentTracer: Tracer, context: Context, spanName: string, spanContext: SpanContext, kind: SpanKind, parentSpanId?: string, links?: Link[], startTime?: TimeInput, _deprecatedClock?: unknown, // keeping this argument even though it is unused to ensure backwards compatibility
attributes?: SpanAttributes);
spanContext(): SpanContext;

@@ -42,0 +43,0 @@ setAttribute(key: string, value?: SpanAttributeValue): this;

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

* */
constructor(parentTracer, context, spanName, spanContext, kind, parentSpanId, links = [], startTime, _deprecatedClock // keeping this argument even though it is unused to ensure backwards compatibility
) {
constructor(parentTracer, context, spanName, spanContext, kind, parentSpanId, links = [], startTime, _deprecatedClock, // keeping this argument even though it is unused to ensure backwards compatibility
attributes) {
this.attributes = {};

@@ -61,2 +61,5 @@ this.links = [];

this._spanLimits = parentTracer.getSpanLimits();
if (attributes != null) {
this.setAttributes(attributes);
}
this._spanProcessor = parentTracer.getActiveSpanProcessor();

@@ -63,0 +66,0 @@ this._spanProcessor.onStart(this, context);

@@ -93,7 +93,6 @@ "use strict";

}
const span = new Span_1.Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime);
// Set initial span attributes. The attributes object may have been mutated
// by the sampler, so we sanitize the merged attributes before setting them.
const initAttributes = (0, core_1.sanitizeAttributes)(Object.assign(attributes, samplingResult.attributes));
span.setAttributes(initAttributes);
const span = new Span_1.Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime, undefined, initAttributes);
return span;

@@ -100,0 +99,0 @@ }

@@ -1,2 +0,2 @@

export declare const VERSION = "1.18.1";
export declare const VERSION = "1.19.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '1.18.1';
exports.VERSION = '1.19.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/sdk-trace-base",
"version": "1.18.1",
"version": "1.19.0",
"description": "OpenTelemetry Tracing",

@@ -69,3 +69,3 @@ "main": "build/src/index.js",

"@opentelemetry/api": ">=1.0.0 <1.8.0",
"@types/mocha": "10.0.3",
"@types/mocha": "10.0.6",
"@types/node": "18.6.5",

@@ -91,3 +91,3 @@ "@types/sinon": "10.0.20",

"typescript": "4.4.4",
"webpack": "4.46.0"
"webpack": "5.89.0"
},

@@ -98,9 +98,9 @@ "peerDependencies": {

"dependencies": {
"@opentelemetry/core": "1.18.1",
"@opentelemetry/resources": "1.18.1",
"@opentelemetry/semantic-conventions": "1.18.1"
"@opentelemetry/core": "1.19.0",
"@opentelemetry/resources": "1.19.0",
"@opentelemetry/semantic-conventions": "1.19.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-base",
"sideEffects": false,
"gitHead": "f665499096189390e691cf1a772e677fa67812d7"
"gitHead": "d3c311aec24137084dc820805a2597e120335672"
}

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

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