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

@opentelemetry/sdk-node

Package Overview
Dependencies
Maintainers
3
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/sdk-node - npm Package Compare versions

Comparing version 0.51.1 to 0.52.0

10

build/src/sdk.js

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

constructor(configuration = {}) {
var _a, _b, _c, _d, _e;
var _a, _b, _c, _d, _e, _f, _g;
const env = (0, core_1.getEnv)();

@@ -108,7 +108,3 @@ const envWithoutDefaults = (0, core_1.getEnvWithoutDefaults)();

}
let instrumentations = [];
if (configuration.instrumentations) {
instrumentations = configuration.instrumentations;
}
this._instrumentations = instrumentations;
this._instrumentations = (_g = (_f = configuration.instrumentations) === null || _f === void 0 ? void 0 : _f.flat()) !== null && _g !== void 0 ? _g : [];
}

@@ -177,3 +173,3 @@ /**

// This code is obsolete once https://github.com/open-telemetry/opentelemetry-js/issues/3622 is implemented.
for (const instrumentation of (0, utils_1.parseInstrumentationOptions)(this._instrumentations)) {
for (const instrumentation of this._instrumentations) {
instrumentation.setMeterProvider(api_1.metrics.getMeterProvider());

@@ -180,0 +176,0 @@ }

import type { ContextManager } from '@opentelemetry/api';
import { TextMapPropagator } from '@opentelemetry/api';
import { InstrumentationOption } from '@opentelemetry/instrumentation';
import { Instrumentation } from '@opentelemetry/instrumentation';
import { Detector, DetectorSync, IResource } from '@opentelemetry/resources';

@@ -15,3 +15,3 @@ import { LogRecordProcessor } from '@opentelemetry/sdk-logs';

views: View[];
instrumentations: InstrumentationOption[];
instrumentations: (Instrumentation | Instrumentation[])[];
resource: IResource;

@@ -18,0 +18,0 @@ resourceDetectors: Array<Detector | DetectorSync>;

@@ -1,5 +0,3 @@

import { Instrumentation, InstrumentationOption } from '@opentelemetry/instrumentation';
import { DetectorSync } from '@opentelemetry/resources';
export declare function parseInstrumentationOptions(options?: InstrumentationOption[]): Instrumentation[];
export declare function getResourceDetectorsFromEnv(): Array<DetectorSync>;
//# sourceMappingURL=utils.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.getResourceDetectorsFromEnv = exports.parseInstrumentationOptions = void 0;
exports.getResourceDetectorsFromEnv = void 0;
const api_1 = require("@opentelemetry/api");
const resources_1 = require("@opentelemetry/resources");
// TODO: This part of a workaround to fix https://github.com/open-telemetry/opentelemetry-js/issues/3609
// If the MeterProvider is not yet registered when instrumentations are registered, all metrics are dropped.
// This code is obsolete once https://github.com/open-telemetry/opentelemetry-js/issues/3622 is implemented.
function parseInstrumentationOptions(options = []) {
let instrumentations = [];
for (let i = 0, j = options.length; i < j; i++) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const option = options[i];
if (Array.isArray(option)) {
const results = parseInstrumentationOptions(option);
instrumentations = instrumentations.concat(results);
}
else if (typeof option === 'function') {
instrumentations.push(new option());
}
else if (option.instrumentationName) {
instrumentations.push(option);
}
}
return instrumentations;
}
exports.parseInstrumentationOptions = parseInstrumentationOptions;
const RESOURCE_DETECTOR_ENVIRONMENT = 'env';

@@ -45,0 +23,0 @@ const RESOURCE_DETECTOR_HOST = 'host';

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

export declare const VERSION = "0.51.1";
export declare const VERSION = "0.52.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '0.51.1';
exports.VERSION = '0.52.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/sdk-node",
"version": "0.51.1",
"version": "0.52.0",
"description": "OpenTelemetry SDK for Node.js",

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

"prewatch": "npm run precompile",
"peer-api-check": "node ../../../scripts/peer-api-check.js"
"peer-api-check": "node ../../../scripts/peer-api-check.js",
"align-api-deps": "node ../../../scripts/align-api-deps.js"
},

@@ -48,27 +49,27 @@ "keywords": [

"dependencies": {
"@opentelemetry/api-logs": "0.51.1",
"@opentelemetry/core": "1.24.1",
"@opentelemetry/exporter-trace-otlp-grpc": "0.51.1",
"@opentelemetry/exporter-trace-otlp-http": "0.51.1",
"@opentelemetry/exporter-trace-otlp-proto": "0.51.1",
"@opentelemetry/exporter-zipkin": "1.24.1",
"@opentelemetry/instrumentation": "0.51.1",
"@opentelemetry/resources": "1.24.1",
"@opentelemetry/sdk-logs": "0.51.1",
"@opentelemetry/sdk-metrics": "1.24.1",
"@opentelemetry/sdk-trace-base": "1.24.1",
"@opentelemetry/sdk-trace-node": "1.24.1",
"@opentelemetry/semantic-conventions": "1.24.1"
"@opentelemetry/api-logs": "0.52.0",
"@opentelemetry/core": "1.25.0",
"@opentelemetry/exporter-trace-otlp-grpc": "0.52.0",
"@opentelemetry/exporter-trace-otlp-http": "0.52.0",
"@opentelemetry/exporter-trace-otlp-proto": "0.52.0",
"@opentelemetry/exporter-zipkin": "1.25.0",
"@opentelemetry/instrumentation": "0.52.0",
"@opentelemetry/resources": "1.25.0",
"@opentelemetry/sdk-logs": "0.52.0",
"@opentelemetry/sdk-metrics": "1.25.0",
"@opentelemetry/sdk-trace-base": "1.25.0",
"@opentelemetry/sdk-trace-node": "1.25.0",
"@opentelemetry/semantic-conventions": "1.25.0"
},
"peerDependencies": {
"@opentelemetry/api": ">=1.3.0 <1.9.0"
"@opentelemetry/api": ">=1.3.0 <1.10.0"
},
"devDependencies": {
"@opentelemetry/api": "1.8.0",
"@opentelemetry/context-async-hooks": "1.24.1",
"@opentelemetry/exporter-jaeger": "1.24.1",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/context-async-hooks": "1.25.0",
"@opentelemetry/exporter-jaeger": "1.25.0",
"@types/mocha": "10.0.6",
"@types/node": "18.6.5",
"@types/semver": "7.5.6",
"@types/sinon": "10.0.20",
"@types/semver": "7.5.8",
"@types/sinon": "17.0.3",
"codecov": "3.8.3",

@@ -81,3 +82,3 @@ "cross-var": "1.1.0",

"sinon": "15.1.2",
"ts-loader": "8.4.0",
"ts-loader": "9.5.1",
"ts-mocha": "10.0.0",

@@ -88,3 +89,3 @@ "typescript": "4.4.4"

"sideEffects": false,
"gitHead": "41c2626fe0ed03e2e83bd79ee43c9bdf0ffd80d8"
"gitHead": "c4d3351b6b3f5593c8d7cbfec97b45cea9fe1511"
}

@@ -188,3 +188,3 @@ # OpenTelemetry SDK for Node.js

|----------------------|-------------|
| OTEL_TRACES_EXPORTER | List of exporters to be used for tracing, separated by commas. Options include `otlp`, `jaeger`, `zipkin`, and `none`. Default is `otlp`. `none` means no autoconfigured exporter.
| OTEL_TRACES_EXPORTER | List of exporters to be used for tracing, separated by commas. Options include `otlp`, `jaeger`, `zipkin`, and `none`. Default is `otlp`. `none` means no autoconfigured exporter. |

@@ -191,0 +191,0 @@ ### OTLP Exporter

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