🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@opentelemetry/sdk-trace-base

Package Overview
Dependencies
Maintainers
3
Versions
65
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

to
1.16.0

2

build/esm/Span.d.ts

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

isRecording(): boolean;
recordException(exception: Exception, time?: TimeInput): void;
recordException(exception: Exception, attributesOrStartTime?: SpanAttributes | TimeInput, timeStamp?: TimeInput): void;
get duration(): HrTime;

@@ -59,0 +59,0 @@ get ended(): boolean;

@@ -218,3 +218,9 @@ /*

};
Span.prototype.recordException = function (exception, time) {
Span.prototype.recordException = function (exception, attributesOrStartTime, timeStamp) {
if (isTimeInput(attributesOrStartTime)) {
if (!isTimeInput(timeStamp)) {
timeStamp = attributesOrStartTime;
}
attributesOrStartTime = undefined;
}
var attributes = {};

@@ -239,6 +245,9 @@ if (typeof exception === 'string') {

}
if (attributesOrStartTime) {
Object.assign(attributes, sanitizeAttributes(attributesOrStartTime));
}
// these are minimum requirements from spec
if (attributes[SemanticAttributes.EXCEPTION_TYPE] ||
attributes[SemanticAttributes.EXCEPTION_MESSAGE]) {
this.addEvent(ExceptionEventName, attributes, time);
this.addEvent(ExceptionEventName, attributes, timeStamp);
}

@@ -245,0 +254,0 @@ else {

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

export declare const VERSION = "1.15.2";
export declare const VERSION = "1.16.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

isRecording(): boolean;
recordException(exception: Exception, time?: TimeInput): void;
recordException(exception: Exception, attributesOrStartTime?: SpanAttributes | TimeInput, timeStamp?: TimeInput): void;
get duration(): HrTime;

@@ -59,0 +59,0 @@ get ended(): boolean;

@@ -179,3 +179,9 @@ /*

}
recordException(exception, time) {
recordException(exception, attributesOrStartTime, timeStamp) {
if (isTimeInput(attributesOrStartTime)) {
if (!isTimeInput(timeStamp)) {
timeStamp = attributesOrStartTime;
}
attributesOrStartTime = undefined;
}
const attributes = {};

@@ -200,6 +206,9 @@ if (typeof exception === 'string') {

}
if (attributesOrStartTime) {
Object.assign(attributes, sanitizeAttributes(attributesOrStartTime));
}
// these are minimum requirements from spec
if (attributes[SemanticAttributes.EXCEPTION_TYPE] ||
attributes[SemanticAttributes.EXCEPTION_MESSAGE]) {
this.addEvent(ExceptionEventName, attributes, time);
this.addEvent(ExceptionEventName, attributes, timeStamp);
}

@@ -206,0 +215,0 @@ else {

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

export declare const VERSION = "1.15.2";
export declare const VERSION = "1.16.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

isRecording(): boolean;
recordException(exception: Exception, time?: TimeInput): void;
recordException(exception: Exception, attributesOrStartTime?: SpanAttributes | TimeInput, timeStamp?: TimeInput): void;
get duration(): HrTime;

@@ -59,0 +59,0 @@ get ended(): boolean;

@@ -182,3 +182,9 @@ "use strict";

}
recordException(exception, time) {
recordException(exception, attributesOrStartTime, timeStamp) {
if ((0, core_1.isTimeInput)(attributesOrStartTime)) {
if (!(0, core_1.isTimeInput)(timeStamp)) {
timeStamp = attributesOrStartTime;
}
attributesOrStartTime = undefined;
}
const attributes = {};

@@ -203,6 +209,9 @@ if (typeof exception === 'string') {

}
if (attributesOrStartTime) {
Object.assign(attributes, (0, core_1.sanitizeAttributes)(attributesOrStartTime));
}
// these are minimum requirements from spec
if (attributes[semantic_conventions_1.SemanticAttributes.EXCEPTION_TYPE] ||
attributes[semantic_conventions_1.SemanticAttributes.EXCEPTION_MESSAGE]) {
this.addEvent(enums_1.ExceptionEventName, attributes, time);
this.addEvent(enums_1.ExceptionEventName, attributes, timeStamp);
}

@@ -209,0 +218,0 @@ else {

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

export declare const VERSION = "1.15.2";
export declare const VERSION = "1.16.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

"devDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.5.0",
"@opentelemetry/api": ">=1.0.0 <1.6.0",
"@opentelemetry/resources_1.9.0": "npm:@opentelemetry/resources@1.9.0",

@@ -84,3 +84,3 @@ "@types/mocha": "10.0.1",

"karma-webpack": "4.0.2",
"lerna": "7.1.4",
"lerna": "7.1.5",
"mocha": "10.2.0",

@@ -95,12 +95,12 @@ "nyc": "15.1.0",

"peerDependencies": {
"@opentelemetry/api": ">=1.0.0 <1.5.0"
"@opentelemetry/api": ">=1.0.0 <1.6.0"
},
"dependencies": {
"@opentelemetry/core": "1.15.2",
"@opentelemetry/resources": "1.15.2",
"@opentelemetry/semantic-conventions": "1.15.2"
"@opentelemetry/core": "1.16.0",
"@opentelemetry/resources": "1.16.0",
"@opentelemetry/semantic-conventions": "1.16.0"
},
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-sdk-trace-base",
"sideEffects": false,
"gitHead": "48fb15862e801b742059a3e39dbcc8ef4c10b2e2"
"gitHead": "5fcd8cf136e2235903dde3df9ba03ced594f0e95"
}

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