Socket
Socket
Sign inDemoInstall

@opentelemetry/api

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentelemetry/api - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

build/esm/api/metrics.js

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

import { NOOP_METER_PROVIDER } from '../metrics/NoopMeterProvider';
import { getGlobal, registerGlobal, unregisterGlobal } from '../internal/global-utils';
import { getGlobal, registerGlobal, unregisterGlobal, } from '../internal/global-utils';
import { DiagAPI } from './diag';

@@ -20,0 +20,0 @@ var API_NAME = 'metrics';

import { Context } from '../context/types';
import { TextMapGetter, TextMapPropagator, TextMapSetter } from '../propagation/TextMapPropagator';
import { getBaggage, setBaggage, deleteBaggage } from '../baggage/context-helpers';
import { getBaggage, getActiveBaggage, setBaggage, deleteBaggage } from '../baggage/context-helpers';
import { createBaggage } from '../baggage/utils';

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

getBaggage: typeof getBaggage;
getActiveBaggage: typeof getActiveBaggage;
setBaggage: typeof setBaggage;

@@ -46,0 +47,0 @@ deleteBaggage: typeof deleteBaggage;

@@ -19,3 +19,3 @@ /*

import { defaultTextMapGetter, defaultTextMapSetter, } from '../propagation/TextMapPropagator';
import { getBaggage, setBaggage, deleteBaggage, } from '../baggage/context-helpers';
import { getBaggage, getActiveBaggage, setBaggage, deleteBaggage, } from '../baggage/context-helpers';
import { createBaggage } from '../baggage/utils';

@@ -33,2 +33,3 @@ import { DiagAPI } from './diag';

this.getBaggage = getBaggage;
this.getActiveBaggage = getActiveBaggage;
this.setBaggage = setBaggage;

@@ -35,0 +36,0 @@ this.deleteBaggage = deleteBaggage;

@@ -11,2 +11,8 @@ import { Context } from '../context/types';

/**
* Retrieve the current baggage from the active/current context
*
* @returns {Baggage} Extracted baggage from the context
*/
export declare function getActiveBaggage(): Baggage | undefined;
/**
* Store a baggage in the given context

@@ -13,0 +19,0 @@ *

@@ -16,2 +16,3 @@ /*

*/
import { ContextAPI } from '../api/context';
import { createContextKey } from '../context/context';

@@ -32,2 +33,10 @@ /**

/**
* Retrieve the current baggage from the active/current context
*
* @returns {Baggage} Extracted baggage from the context
*/
export function getActiveBaggage() {
return getBaggage(ContextAPI.getInstance().active());
}
/**
* Store a baggage in the given context

@@ -34,0 +43,0 @@ *

@@ -84,9 +84,9 @@ export declare type DiagLogFunction = (message: string, ...args: unknown[]) => void;

/**
* Set the global DiagLogger and DiagLogLevel.
* If a global diag logger is already set, this will override it.
*
* @param logger - The {@link DiagLogger} instance to set as the default logger.
* @param options - A {@link LoggerOptions} object. If not provided, default values will be set.
* @returns `true` if the logger was successfully registered, else `false`
*/
* Set the global DiagLogger and DiagLogLevel.
* If a global diag logger is already set, this will override it.
*
* @param logger - The {@link DiagLogger} instance to set as the default logger.
* @param options - A {@link LoggerOptions} object. If not provided, default values will be set.
* @returns `true` if the logger was successfully registered, else `false`
*/
setLogger(logger: DiagLogger, options?: LoggerOptions): boolean;

@@ -93,0 +93,0 @@ /**

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

export { BaggageEntry, BaggageEntryMetadata, Baggage, } from './baggage/types';
export { BaggageEntry, BaggageEntryMetadata, Baggage } from './baggage/types';
export { baggageEntryMetadataFromString } from './baggage/utils';

@@ -6,4 +6,4 @@ export { Exception } from './common/Exception';

export { Attributes, AttributeValue } from './common/Attributes';
export { createContextKey, ROOT_CONTEXT, } from './context/context';
export { Context, ContextManager, } from './context/types';
export { createContextKey, ROOT_CONTEXT } from './context/context';
export { Context, ContextManager } from './context/types';
export type { ContextAPI } from './api/context';

@@ -13,5 +13,5 @@ export { DiagConsoleLogger } from './diag/consoleLogger';

export type { DiagAPI } from './api/diag';
export { createNoopMeter, } from './metrics/NoopMeter';
export { MeterOptions, Meter, } from './metrics/Meter';
export { MeterProvider, } from './metrics/MeterProvider';
export { createNoopMeter } from './metrics/NoopMeter';
export { MeterOptions, Meter } from './metrics/Meter';
export { MeterProvider } from './metrics/MeterProvider';
export { ValueType, Counter, Histogram, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, BatchObservableCallback, MetricAttributes, MetricAttributeValue, ObservableCallback, } from './metrics/Metric';

@@ -21,3 +21,3 @@ export { BatchObservableResult, ObservableResult, } from './metrics/ObservableResult';

export type { PropagationAPI } from './api/propagation';
export { SpanAttributes, SpanAttributeValue, } from './trace/attributes';
export { SpanAttributes, SpanAttributeValue } from './trace/attributes';
export { Link } from './trace/link';

@@ -47,3 +47,3 @@ export { ProxyTracer, TracerDelegator } from './trace/ProxyTracer';

import { trace } from './trace-api';
export { context, diag, metrics, propagation, trace, };
export { context, diag, metrics, propagation, trace };
declare const _default: {

@@ -50,0 +50,0 @@ context: import("./api/context").ContextAPI;

@@ -18,3 +18,3 @@ /*

// Context APIs
export { createContextKey, ROOT_CONTEXT, } from './context/context';
export { createContextKey, ROOT_CONTEXT } from './context/context';
// Diag APIs

@@ -24,3 +24,3 @@ export { DiagConsoleLogger } from './diag/consoleLogger';

// Metrics APIs
export { createNoopMeter, } from './metrics/NoopMeter';
export { createNoopMeter } from './metrics/NoopMeter';
export { ValueType, } from './metrics/Metric';

@@ -46,3 +46,3 @@ // Propagation APIs

// Named export.
export { context, diag, metrics, propagation, trace, };
export { context, diag, metrics, propagation, trace };
// Default export.

@@ -49,0 +49,0 @@ export default {

@@ -63,11 +63,7 @@ import { Attributes, AttributeValue } from '../common/Attributes';

/**
* Attributes is a map from string to attribute values.
*
* Note: only the own enumerable keys are counted as valid attribute keys.
* @deprecated please use {@link Attributes}
*/
export declare type MetricAttributes = Attributes;
/**
* Attribute values may be any non-nullish primitive value except an object.
*
* null or undefined attribute values are invalid and will result in undefined behavior.
* @deprecated please use {@link AttributeValue}
*/

@@ -74,0 +70,0 @@ export declare type MetricAttributeValue = AttributeValue;

@@ -14,3 +14,3 @@ import { MetricAttributes, Observable } from './Metric';

*/
observe(value: number, attributes?: AttributesTypes): void;
observe(this: ObservableResult<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
}

@@ -30,4 +30,4 @@ /**

*/
observe(metric: Observable<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
observe(this: BatchObservableResult<AttributesTypes>, metric: Observable<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
}
//# sourceMappingURL=ObservableResult.d.ts.map

@@ -26,7 +26,11 @@ /*

// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
export var _globalThis = typeof globalThis === 'object' ? globalThis :
typeof self === 'object' ? self :
typeof window === 'object' ? window :
typeof global === 'object' ? global :
{};
export var _globalThis = typeof globalThis === 'object'
? globalThis
: typeof self === 'object'
? self
: typeof window === 'object'
? window
: typeof global === 'object'
? global
: {};
//# sourceMappingURL=globalThis.js.map

@@ -29,2 +29,3 @@ /*

NoopTracer.prototype.startSpan = function (name, options, context) {
if (context === void 0) { context = contextApi.active(); }
var root = Boolean(options === null || options === void 0 ? void 0 : options.root);

@@ -31,0 +32,0 @@ if (root) {

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

export declare const VERSION = "1.3.0";
export declare const VERSION = "1.4.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
export var VERSION = '1.3.0';
export var VERSION = '1.4.0';
//# sourceMappingURL=version.js.map
import { Context } from '../context/types';
import { TextMapGetter, TextMapPropagator, TextMapSetter } from '../propagation/TextMapPropagator';
import { getBaggage, setBaggage, deleteBaggage } from '../baggage/context-helpers';
import { getBaggage, getActiveBaggage, setBaggage, deleteBaggage } from '../baggage/context-helpers';
import { createBaggage } from '../baggage/utils';

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

getBaggage: typeof getBaggage;
getActiveBaggage: typeof getActiveBaggage;
setBaggage: typeof setBaggage;

@@ -46,0 +47,0 @@ deleteBaggage: typeof deleteBaggage;

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

this.getBaggage = context_helpers_1.getBaggage;
this.getActiveBaggage = context_helpers_1.getActiveBaggage;
this.setBaggage = context_helpers_1.setBaggage;

@@ -37,0 +38,0 @@ this.deleteBaggage = context_helpers_1.deleteBaggage;

@@ -11,2 +11,8 @@ import { Context } from '../context/types';

/**
* Retrieve the current baggage from the active/current context
*
* @returns {Baggage} Extracted baggage from the context
*/
export declare function getActiveBaggage(): Baggage | undefined;
/**
* Store a baggage in the given context

@@ -13,0 +19,0 @@ *

@@ -18,8 +18,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteBaggage = exports.setBaggage = exports.getBaggage = void 0;
const context_1 = require("../context/context");
exports.deleteBaggage = exports.setBaggage = exports.getActiveBaggage = exports.getBaggage = void 0;
const context_1 = require("../api/context");
const context_2 = require("../context/context");
/**
* Baggage key
*/
const BAGGAGE_KEY = (0, context_1.createContextKey)('OpenTelemetry Baggage Key');
const BAGGAGE_KEY = (0, context_2.createContextKey)('OpenTelemetry Baggage Key');
/**

@@ -36,2 +37,11 @@ * Retrieve the current baggage from the given context

/**
* Retrieve the current baggage from the active/current context
*
* @returns {Baggage} Extracted baggage from the context
*/
function getActiveBaggage() {
return getBaggage(context_1.ContextAPI.getInstance().active());
}
exports.getActiveBaggage = getActiveBaggage;
/**
* Store a baggage in the given context

@@ -38,0 +48,0 @@ *

@@ -84,9 +84,9 @@ export declare type DiagLogFunction = (message: string, ...args: unknown[]) => void;

/**
* Set the global DiagLogger and DiagLogLevel.
* If a global diag logger is already set, this will override it.
*
* @param logger - The {@link DiagLogger} instance to set as the default logger.
* @param options - A {@link LoggerOptions} object. If not provided, default values will be set.
* @returns `true` if the logger was successfully registered, else `false`
*/
* Set the global DiagLogger and DiagLogLevel.
* If a global diag logger is already set, this will override it.
*
* @param logger - The {@link DiagLogger} instance to set as the default logger.
* @param options - A {@link LoggerOptions} object. If not provided, default values will be set.
* @returns `true` if the logger was successfully registered, else `false`
*/
setLogger(logger: DiagLogger, options?: LoggerOptions): boolean;

@@ -93,0 +93,0 @@ /**

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

export { BaggageEntry, BaggageEntryMetadata, Baggage, } from './baggage/types';
export { BaggageEntry, BaggageEntryMetadata, Baggage } from './baggage/types';
export { baggageEntryMetadataFromString } from './baggage/utils';

@@ -6,4 +6,4 @@ export { Exception } from './common/Exception';

export { Attributes, AttributeValue } from './common/Attributes';
export { createContextKey, ROOT_CONTEXT, } from './context/context';
export { Context, ContextManager, } from './context/types';
export { createContextKey, ROOT_CONTEXT } from './context/context';
export { Context, ContextManager } from './context/types';
export type { ContextAPI } from './api/context';

@@ -13,5 +13,5 @@ export { DiagConsoleLogger } from './diag/consoleLogger';

export type { DiagAPI } from './api/diag';
export { createNoopMeter, } from './metrics/NoopMeter';
export { MeterOptions, Meter, } from './metrics/Meter';
export { MeterProvider, } from './metrics/MeterProvider';
export { createNoopMeter } from './metrics/NoopMeter';
export { MeterOptions, Meter } from './metrics/Meter';
export { MeterProvider } from './metrics/MeterProvider';
export { ValueType, Counter, Histogram, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, BatchObservableCallback, MetricAttributes, MetricAttributeValue, ObservableCallback, } from './metrics/Metric';

@@ -21,3 +21,3 @@ export { BatchObservableResult, ObservableResult, } from './metrics/ObservableResult';

export type { PropagationAPI } from './api/propagation';
export { SpanAttributes, SpanAttributeValue, } from './trace/attributes';
export { SpanAttributes, SpanAttributeValue } from './trace/attributes';
export { Link } from './trace/link';

@@ -47,3 +47,3 @@ export { ProxyTracer, TracerDelegator } from './trace/ProxyTracer';

import { trace } from './trace-api';
export { context, diag, metrics, propagation, trace, };
export { context, diag, metrics, propagation, trace };
declare const _default: {

@@ -50,0 +50,0 @@ context: import("./api/context").ContextAPI;

@@ -63,11 +63,7 @@ import { Attributes, AttributeValue } from '../common/Attributes';

/**
* Attributes is a map from string to attribute values.
*
* Note: only the own enumerable keys are counted as valid attribute keys.
* @deprecated please use {@link Attributes}
*/
export declare type MetricAttributes = Attributes;
/**
* Attribute values may be any non-nullish primitive value except an object.
*
* null or undefined attribute values are invalid and will result in undefined behavior.
* @deprecated please use {@link AttributeValue}
*/

@@ -74,0 +70,0 @@ export declare type MetricAttributeValue = AttributeValue;

@@ -14,3 +14,3 @@ import { MetricAttributes, Observable } from './Metric';

*/
observe(value: number, attributes?: AttributesTypes): void;
observe(this: ObservableResult<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
}

@@ -30,4 +30,4 @@ /**

*/
observe(metric: Observable<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
observe(this: BatchObservableResult<AttributesTypes>, metric: Observable<AttributesTypes>, value: number, attributes?: AttributesTypes): void;
}
//# sourceMappingURL=ObservableResult.d.ts.map

@@ -29,7 +29,11 @@ "use strict";

// eslint-disable-next-line node/no-unsupported-features/es-builtins, no-undef
exports._globalThis = typeof globalThis === 'object' ? globalThis :
typeof self === 'object' ? self :
typeof window === 'object' ? window :
typeof global === 'object' ? global :
{};
exports._globalThis = typeof globalThis === 'object'
? globalThis
: typeof self === 'object'
? self
: typeof window === 'object'
? window
: typeof global === 'object'
? global
: {};
//# sourceMappingURL=globalThis.js.map

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

// startSpan starts a noop span.
startSpan(name, options, context) {
startSpan(name, options, context = contextApi.active()) {
const root = Boolean(options === null || options === void 0 ? void 0 : options.root);

@@ -32,0 +32,0 @@ if (root) {

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

export declare const VERSION = "1.3.0";
export declare const VERSION = "1.4.0";
//# sourceMappingURL=version.d.ts.map

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

// this is autogenerated file, see scripts/version-update.js
exports.VERSION = '1.3.0';
exports.VERSION = '1.4.0';
//# sourceMappingURL=version.js.map
{
"name": "@opentelemetry/api",
"version": "1.3.0",
"version": "1.4.0",
"description": "Public API for OpenTelemetry",

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

"scripts": {
"clean": "tsc --build --clean",
"clean": "tsc --build --clean tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"codecov:browser": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",

@@ -21,3 +21,3 @@ "codecov:webworker": "nyc report --reporter=json && codecov -f coverage/*.json -p ../",

"precompile": "lerna run version --scope $(npm pkg get name) --include-dependencies",
"compile": "tsc --build tsconfig.json tsconfig.esm.json",
"compile": "tsc --build tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"docs": "typedoc",

@@ -34,3 +34,3 @@ "docs:deploy": "gh-pages --dist docs/out",

"prewatch": "npm run precompile",
"watch": "tsc --build --watch",
"watch": "tsc --build --watch tsconfig.json tsconfig.esm.json tsconfig.esnext.json",
"peer-api-check": "node ../scripts/peer-api-check.js"

@@ -84,3 +84,3 @@ },

"nyc": "15.1.0",
"sinon": "14.0.0",
"sinon": "15.0.0",
"ts-loader": "8.4.0",

@@ -93,3 +93,4 @@ "ts-mocha": "10.0.0",

"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/api",
"sideEffects": false
"sideEffects": false,
"gitHead": "08f597f3a3d71a4852b0afbba120af15ca038121"
}

@@ -0,36 +1,15 @@

# OpenTelemetry API for JavaScript
---
<p align="center">
<strong>
<a href="https://open-telemetry.github.io/opentelemetry-js-api">API Documentation<a/>
&nbsp;&nbsp;&bull;&nbsp;&nbsp;
<a href="https://github.com/open-telemetry/opentelemetry-js/discussions">Getting In Touch (GitHub Discussions)<a/>
</strong>
</p>
<p align="center">
<a href="https://github.com/open-telemetry/opentelemetry-js-api/releases">
<img alt="GitHub release (latest by date including pre-releases)" src="https://img.shields.io/github/v/release/open-telemetry/opentelemetry-js-api?include_prereleases&style=for-the-badge">
<strong>
<a href="https://open-telemetry.github.io/opentelemetry-js/modules/_opentelemetry_api.html">API Reference</a>
&nbsp;&nbsp;&bull;&nbsp;&nbsp;
<a href="https://opentelemetry.io/docs/instrumentation/js/">Documentation</a>
</br>
<a href="https://github.com/open-telemetry/opentelemetry-js/releases">
<img alt="NPM Release" src="https://img.shields.io/npm/v/@opentelemetry/api?color=brightgreen&logo=data%3Aimage%2Fpng%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR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t2%2B%2FxJDF1XvOlWGC1W1B8VMszbGfOvT5qaRRAIFK3BCO164nZ0uYLH2YjNN8thXS2v2BK9gTfD7jHVxzHr4roOlEvYYz9QIz%2BVl%2FsLDXInsctFsXjqIRnO2ZO387lxmIboLDZCJ59KLFliNIgh9ipt6tLg9SihpRPDO1ia5byw7de1aCQmF5geOQtK509rzfdwxaKOIq%2B73AvwCC5%2F5fcV4vo3%2B3LpMdtWHh0ywsJC%2FZGoCb8%2F9D8F%2FifgLLl8S8QWfU8cAAAAASUVORK5CYII%3D">
</a>
<a href="https://codecov.io/gh/open-telemetry/opentelemetry-js-api/branch/main/">
<img alt="Codecov Status" src="https://img.shields.io/codecov/c/github/open-telemetry/opentelemetry-js-api?style=for-the-badge">
</a>
<a href="https://github.com/open-telemetry/opentelemetry-js/blob/main/api/LICENSE">
<img alt="license" src="https://img.shields.io/badge/license-Apache_2.0-green.svg?style=for-the-badge">
</a>
<br/>
<a href="https://github.com/open-telemetry/opentelemetry-js-api/actions/workflows/docs.yaml">
<img alt="Build Status" src="https://github.com/open-telemetry/opentelemetry-js-api/actions/workflows/test.yaml/badge.svg?branch=main">
</a>
<a href="https://github.com/open-telemetry/opentelemetry-js-api/actions/workflows/test.yaml?query=branch%3Amain">
<img alt="Build Status" src="https://github.com/open-telemetry/opentelemetry-js-api/actions/workflows/docs.yaml/badge.svg">
</a>
</strong>
</p>
---
# OpenTelemetry API for JavaScript
[![NPM Published Version][npm-img]][npm-url]
This package provides everything needed to interact with the OpenTelemetry API, including all TypeScript interfaces, enums, and no-op implementations. It is intended for use both on the server and in the browser.

@@ -137,5 +116,3 @@

[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@opentelemetry/api
[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fapi.svg
[docs-tracing]: https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/tracing.md
[docs-sdk-registration]: https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/sdk-registration.md

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

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

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