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

@opentelemetry/api

Package Overview
Dependencies
Maintainers
4
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 0.16.1-alpha.14 to 0.16.1-alpha.15

build/src/api/diag.d.ts

3

build/src/api/global-utils.d.ts
import { ContextManager } from '@opentelemetry/context-base';
import { TextMapPropagator } from '../context/propagation/TextMapPropagator';
import { TracerProvider } from '../trace/tracer_provider';
import { DiagAPI } from '../api/diag';
export declare const GLOBAL_CONTEXT_MANAGER_API_KEY: unique symbol;
export declare const GLOBAL_PROPAGATION_API_KEY: unique symbol;
export declare const GLOBAL_TRACE_API_KEY: unique symbol;
export declare const GLOBAL_DIAG_LOGGER_API_KEY: unique symbol;
declare type Get<T> = (version: number) => T;

@@ -12,2 +14,3 @@ export declare const _global: Partial<{

[GLOBAL_TRACE_API_KEY]: Get<TracerProvider>;
[GLOBAL_DIAG_LOGGER_API_KEY]: Get<DiagAPI>;
}>;

@@ -14,0 +17,0 @@ /**

3

build/src/api/global-utils.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.API_BACKWARDS_COMPATIBILITY_VERSION = exports.makeGetter = exports._global = exports.GLOBAL_TRACE_API_KEY = exports.GLOBAL_PROPAGATION_API_KEY = exports.GLOBAL_CONTEXT_MANAGER_API_KEY = void 0;
exports.API_BACKWARDS_COMPATIBILITY_VERSION = exports.makeGetter = exports._global = exports.GLOBAL_DIAG_LOGGER_API_KEY = exports.GLOBAL_TRACE_API_KEY = exports.GLOBAL_PROPAGATION_API_KEY = exports.GLOBAL_CONTEXT_MANAGER_API_KEY = void 0;
var platform_1 = require("../platform");

@@ -24,2 +24,3 @@ exports.GLOBAL_CONTEXT_MANAGER_API_KEY = Symbol.for('io.opentelemetry.js.api.context');

exports.GLOBAL_TRACE_API_KEY = Symbol.for('io.opentelemetry.js.api.trace');
exports.GLOBAL_DIAG_LOGGER_API_KEY = Symbol.for('io.opentelemetry.js.api.diag');
exports._global = platform_1._globalThis;

@@ -26,0 +27,0 @@ /**

export declare type LogFunction = (message: string, ...args: unknown[]) => void;
/** Defines a logger interface. */
/** Defines a logger interface.
* @deprecated This interface will be removed prior to v1.0, use the api.diag
* @see {@link DiagLogger} and {@link DiagAPI}
*/
export interface Logger {

@@ -4,0 +7,0 @@ error: LogFunction;

@@ -29,2 +29,5 @@ export * from './common/Exception';

export * from './trace/tracer';
export * from './diag/consoleLogger';
export * from './diag/logger';
export * from './diag/logLevel';
export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils';

@@ -44,2 +47,11 @@ export { Context, ROOT_CONTEXT, createContextKey, ContextManager, } from '@opentelemetry/context-base';

export declare const propagation: PropagationAPI;
import { DiagAPI } from './api/diag';
export type { DiagAPI } from './api/diag';
/**
* Entrypoint for Diag API.
* Defines Diagnostic handler used for internal diagnostic logging operations.
* The default provides a Noop DiagLogger implementation which may be changed via the
* diag.setLogger(logger: DiagLogger) function.
*/
export declare const diag: DiagAPI;
declare const _default: {

@@ -49,4 +61,5 @@ trace: TraceAPI;

propagation: PropagationAPI;
diag: DiagAPI;
};
export default _default;
//# sourceMappingURL=index.d.ts.map

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.propagation = exports.trace = exports.context = exports.createContextKey = exports.ROOT_CONTEXT = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;
exports.diag = exports.propagation = exports.trace = exports.context = exports.createContextKey = exports.ROOT_CONTEXT = exports.isValidSpanId = exports.isValidTraceId = exports.isSpanContextValid = exports.INVALID_SPAN_CONTEXT = exports.INVALID_TRACEID = exports.INVALID_SPANID = void 0;
__exportStar(require("./common/Exception"), exports);

@@ -58,2 +58,5 @@ __exportStar(require("./common/Logger"), exports);

__exportStar(require("./trace/tracer"), exports);
__exportStar(require("./diag/consoleLogger"), exports);
__exportStar(require("./diag/logger"), exports);
__exportStar(require("./diag/logLevel"), exports);
var spancontext_utils_1 = require("./trace/spancontext-utils");

@@ -78,2 +81,10 @@ Object.defineProperty(exports, "INVALID_SPANID", { enumerable: true, get: function () { return spancontext_utils_1.INVALID_SPANID; } });

exports.propagation = propagation_1.PropagationAPI.getInstance();
var diag_1 = require("./api/diag");
/**
* Entrypoint for Diag API.
* Defines Diagnostic handler used for internal diagnostic logging operations.
* The default provides a Noop DiagLogger implementation which may be changed via the
* diag.setLogger(logger: DiagLogger) function.
*/
exports.diag = diag_1.DiagAPI.instance();
exports.default = {

@@ -83,3 +94,4 @@ trace: exports.trace,

propagation: exports.propagation,
diag: exports.diag,
};
//# sourceMappingURL=index.js.map
import { Logger } from '../common/Logger';
/** No-op implementation of Logger */
/** No-op implementation of Logger
* @deprecated This class will be removed prior to v1.0, use the api.diag
* @see {@link DiagAPI}, {@link DiagLogger} and {@link createNoopDiagLogger}
*/
export declare class NoopLogger implements Logger {

@@ -4,0 +7,0 @@ debug(_message: string, ..._args: unknown[]): void;

@@ -19,3 +19,6 @@ "use strict";

exports.NoopLogger = void 0;
/** No-op implementation of Logger */
/** No-op implementation of Logger
* @deprecated This class will be removed prior to v1.0, use the api.diag
* @see {@link DiagAPI}, {@link DiagLogger} and {@link createNoopDiagLogger}
*/
var NoopLogger = /** @class */ (function () {

@@ -22,0 +25,0 @@ function NoopLogger() {

{
"name": "@opentelemetry/api",
"version": "0.16.1-alpha.14+000a8ac0",
"version": "0.16.1-alpha.15+1d682c2f",
"description": "Public API for OpenTelemetry",

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

},
"gitHead": "000a8ac099a3848a9a3c66f4bdd4826b4cff987a"
"gitHead": "1d682c2f75f9d11265cfc1692fa822174594d4b0"
}

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