Socket
Socket
Sign inDemoInstall

@opentelemetry/sdk-trace-base

Package Overview
Dependencies
Maintainers
2
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.1.1 to 1.2.0

6

build/esm/BasicTracerProvider.d.ts

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

import { TextMapPropagator, TracerOptions, TracerProvider } from '@opentelemetry/api';
import { TextMapPropagator, TracerProvider } from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';

@@ -26,3 +26,5 @@ import { SpanProcessor, Tracer } from '.';

constructor(config?: TracerConfig);
getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
getTracer(name: string, version?: string, options?: {
schemaUrl?: string;
}): Tracer;
/**

@@ -29,0 +31,0 @@ * Adds a new {@link SpanProcessor} to this tracer.

@@ -44,3 +44,3 @@ /*

import * as api from '@opentelemetry/api';
import { isAttributeValue, hrTime, hrTimeDuration, isTimeInput, timeInputToHrTime, } from '@opentelemetry/core';
import { isAttributeValue, hrTime, hrTimeDuration, isTimeInput, timeInputToHrTime, sanitizeAttributes, } from '@opentelemetry/core';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';

@@ -144,5 +144,6 @@ import { ExceptionEventName } from './enums';

}
var attributes = sanitizeAttributes(attributesOrStartTime);
this.events.push({
name: name,
attributes: attributesOrStartTime,
attributes: attributes,
time: timeInputToHrTime(startTime),

@@ -149,0 +150,0 @@ });

@@ -69,3 +69,8 @@ /*

var spanKind = (_a = options.kind) !== null && _a !== void 0 ? _a : api.SpanKind.INTERNAL;
var links = (_b = options.links) !== null && _b !== void 0 ? _b : [];
var links = ((_b = options.links) !== null && _b !== void 0 ? _b : []).map(function (link) {
return {
context: link.context,
attributes: sanitizeAttributes(link.attributes),
};
});
var attributes = sanitizeAttributes(options.attributes);

@@ -83,4 +88,6 @@ // make sampling decision

var span = new Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime);
// Set default attributes
span.setAttributes(Object.assign(attributes, samplingResult.attributes));
// 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);
return span;

@@ -87,0 +94,0 @@ };

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

export declare const VERSION = "1.1.1";
export declare const VERSION = "1.2.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

import { TextMapPropagator, TracerOptions, TracerProvider } from '@opentelemetry/api';
import { TextMapPropagator, TracerProvider } from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';

@@ -26,3 +26,5 @@ import { SpanProcessor, Tracer } from '.';

constructor(config?: TracerConfig);
getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
getTracer(name: string, version?: string, options?: {
schemaUrl?: string;
}): Tracer;
/**

@@ -29,0 +31,0 @@ * Adds a new {@link SpanProcessor} to this tracer.

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

import * as api from '@opentelemetry/api';
import { isAttributeValue, hrTime, hrTimeDuration, isTimeInput, timeInputToHrTime, } from '@opentelemetry/core';
import { isAttributeValue, hrTime, hrTimeDuration, isTimeInput, timeInputToHrTime, sanitizeAttributes, } from '@opentelemetry/core';
import { SemanticAttributes } from '@opentelemetry/semantic-conventions';

@@ -104,5 +104,6 @@ import { ExceptionEventName } from './enums';

}
const attributes = sanitizeAttributes(attributesOrStartTime);
this.events.push({
name,
attributes: attributesOrStartTime,
attributes,
time: timeInputToHrTime(startTime),

@@ -109,0 +110,0 @@ });

@@ -67,3 +67,8 @@ /*

const spanKind = (_a = options.kind) !== null && _a !== void 0 ? _a : api.SpanKind.INTERNAL;
const links = (_b = options.links) !== null && _b !== void 0 ? _b : [];
const links = ((_b = options.links) !== null && _b !== void 0 ? _b : []).map(link => {
return {
context: link.context,
attributes: sanitizeAttributes(link.attributes),
};
});
const attributes = sanitizeAttributes(options.attributes);

@@ -81,4 +86,6 @@ // make sampling decision

const span = new Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime);
// Set default attributes
span.setAttributes(Object.assign(attributes, samplingResult.attributes));
// 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);
return span;

@@ -85,0 +92,0 @@ }

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

export declare const VERSION = "1.1.1";
export declare const VERSION = "1.2.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

import { TextMapPropagator, TracerOptions, TracerProvider } from '@opentelemetry/api';
import { TextMapPropagator, TracerProvider } from '@opentelemetry/api';
import { Resource } from '@opentelemetry/resources';

@@ -26,3 +26,5 @@ import { SpanProcessor, Tracer } from '.';

constructor(config?: TracerConfig);
getTracer(name: string, version?: string, options?: TracerOptions): Tracer;
getTracer(name: string, version?: string, options?: {
schemaUrl?: string;
}): Tracer;
/**

@@ -29,0 +31,0 @@ * Adds a new {@link SpanProcessor} to this tracer.

@@ -106,5 +106,6 @@ "use strict";

}
const attributes = (0, core_1.sanitizeAttributes)(attributesOrStartTime);
this.events.push({
name,
attributes: attributesOrStartTime,
attributes,
time: (0, core_1.timeInputToHrTime)(startTime),

@@ -111,0 +112,0 @@ });

@@ -70,3 +70,8 @@ "use strict";

const spanKind = (_a = options.kind) !== null && _a !== void 0 ? _a : api.SpanKind.INTERNAL;
const links = (_b = options.links) !== null && _b !== void 0 ? _b : [];
const links = ((_b = options.links) !== null && _b !== void 0 ? _b : []).map(link => {
return {
context: link.context,
attributes: (0, core_1.sanitizeAttributes)(link.attributes),
};
});
const attributes = (0, core_1.sanitizeAttributes)(options.attributes);

@@ -84,4 +89,6 @@ // make sampling decision

const span = new Span_1.Span(this, context, name, spanContext, spanKind, parentSpanId, links, options.startTime);
// Set default attributes
span.setAttributes(Object.assign(attributes, samplingResult.attributes));
// 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);
return span;

@@ -88,0 +95,0 @@ }

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

export declare const VERSION = "1.1.1";
export declare const VERSION = "1.2.0";
//# sourceMappingURL=version.d.ts.map

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

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

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

"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",
"prewatch": "npm run precompile"
"prewatch": "npm run precompile",
"peer-api-check": "node ../../scripts/peer-api-check.js"
},

@@ -45,3 +46,3 @@ "keywords": [

"engines": {
"node": ">=8.0.0"
"node": ">=8.12.0"
},

@@ -66,3 +67,3 @@ "files": [

"devDependencies": {
"@opentelemetry/api": "~1.1.0",
"@opentelemetry/api": ">=1.0.0 <1.2.0",
"@types/mocha": "8.2.3",

@@ -90,10 +91,10 @@ "@types/node": "14.17.33",

"peerDependencies": {
"@opentelemetry/api": ">=1.1.0 <1.2.0"
"@opentelemetry/api": ">=1.0.0 <1.2.0"
},
"dependencies": {
"@opentelemetry/core": "1.1.1",
"@opentelemetry/resources": "1.1.1",
"@opentelemetry/semantic-conventions": "1.1.1"
"@opentelemetry/core": "1.2.0",
"@opentelemetry/resources": "1.2.0",
"@opentelemetry/semantic-conventions": "1.2.0"
},
"gitHead": "b0f8a2d36e6d1d3090c3d2380608d2102c826e0b"
"gitHead": "a0a670a03fd35b0799bee8cc466f79e93b5b6dd2"
}

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

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