@opentelemetry/core
Advanced tools
Comparing version 0.10.3-alpha.35 to 0.10.3-alpha.40
@@ -8,2 +8,7 @@ import { Span, SpanContext } from '@opentelemetry/api'; | ||
/** | ||
* Shared key for indicating if instrumentation should be suppressed beyond | ||
* this current scope. | ||
*/ | ||
export declare const SUPPRESS_INSTRUMENTATION_KEY: symbol; | ||
/** | ||
* Return the active span if one exists | ||
@@ -42,2 +47,23 @@ * | ||
export declare function getParentSpanContext(context: Context): SpanContext | undefined; | ||
/** | ||
* Sets value on context to indicate that instrumentation should | ||
* be suppressed beyond this current scope. | ||
* | ||
* @param context context to set the suppress instrumentation value on. | ||
*/ | ||
export declare function suppressInstrumentation(context: Context): Context; | ||
/** | ||
* Sets value on context to indicate that instrumentation should | ||
* no-longer be suppressed beyond this current scope. | ||
* | ||
* @param context context to set the suppress instrumentation value on. | ||
*/ | ||
export declare function unsuppressInstrumentation(context: Context): Context; | ||
/** | ||
* Return current suppress instrumentation value for the given context, | ||
* if it exists. | ||
* | ||
* @param context context check for the suppress instrumentation value. | ||
*/ | ||
export declare function isInstrumentationSuppressed(context: Context): boolean; | ||
//# sourceMappingURL=context.d.ts.map |
@@ -18,3 +18,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getParentSpanContext = exports.setExtractedSpanContext = exports.getExtractedSpanContext = exports.setActiveSpan = exports.getActiveSpan = exports.ACTIVE_SPAN_KEY = void 0; | ||
exports.isInstrumentationSuppressed = exports.unsuppressInstrumentation = exports.suppressInstrumentation = exports.getParentSpanContext = exports.setExtractedSpanContext = exports.getExtractedSpanContext = exports.setActiveSpan = exports.getActiveSpan = exports.SUPPRESS_INSTRUMENTATION_KEY = exports.ACTIVE_SPAN_KEY = void 0; | ||
const context_base_1 = require("@opentelemetry/context-base"); | ||
@@ -27,2 +27,7 @@ /** | ||
/** | ||
* Shared key for indicating if instrumentation should be suppressed beyond | ||
* this current scope. | ||
*/ | ||
exports.SUPPRESS_INSTRUMENTATION_KEY = context_base_1.Context.createKey('OpenTelemetry Context Key SUPPRESS_INSTRUMENTATION'); | ||
/** | ||
* Return the active span if one exists | ||
@@ -77,2 +82,32 @@ * | ||
exports.getParentSpanContext = getParentSpanContext; | ||
/** | ||
* Sets value on context to indicate that instrumentation should | ||
* be suppressed beyond this current scope. | ||
* | ||
* @param context context to set the suppress instrumentation value on. | ||
*/ | ||
function suppressInstrumentation(context) { | ||
return context.setValue(exports.SUPPRESS_INSTRUMENTATION_KEY, true); | ||
} | ||
exports.suppressInstrumentation = suppressInstrumentation; | ||
/** | ||
* Sets value on context to indicate that instrumentation should | ||
* no-longer be suppressed beyond this current scope. | ||
* | ||
* @param context context to set the suppress instrumentation value on. | ||
*/ | ||
function unsuppressInstrumentation(context) { | ||
return context.setValue(exports.SUPPRESS_INSTRUMENTATION_KEY, false); | ||
} | ||
exports.unsuppressInstrumentation = unsuppressInstrumentation; | ||
/** | ||
* Return current suppress instrumentation value for the given context, | ||
* if it exists. | ||
* | ||
* @param context context check for the suppress instrumentation value. | ||
*/ | ||
function isInstrumentationSuppressed(context) { | ||
return Boolean(context.getValue(exports.SUPPRESS_INSTRUMENTATION_KEY)); | ||
} | ||
exports.isInstrumentationSuppressed = isInstrumentationSuppressed; | ||
//# sourceMappingURL=context.js.map |
@@ -1,2 +0,2 @@ | ||
import { Context, GetterFunction, HttpTextPropagator, SetterFunction } from '@opentelemetry/api'; | ||
import { Context, GetterFunction, TextMapPropagator, SetterFunction } from '@opentelemetry/api'; | ||
export declare const X_B3_TRACE_ID = "x-b3-traceid"; | ||
@@ -13,3 +13,3 @@ export declare const X_B3_SPAN_ID = "x-b3-spanid"; | ||
*/ | ||
export declare class B3Propagator implements HttpTextPropagator { | ||
export declare class B3Propagator implements TextMapPropagator { | ||
inject(context: Context, carrier: unknown, setter: SetterFunction): void; | ||
@@ -16,0 +16,0 @@ extract(context: Context, carrier: unknown, getter: GetterFunction): Context; |
@@ -1,5 +0,5 @@ | ||
import { Context, GetterFunction, HttpTextPropagator, SetterFunction } from '@opentelemetry/api'; | ||
import { Context, GetterFunction, TextMapPropagator, SetterFunction } from '@opentelemetry/api'; | ||
import { CompositePropagatorConfig } from './types'; | ||
/** Combines multiple propagators into a single propagator. */ | ||
export declare class CompositePropagator implements HttpTextPropagator { | ||
export declare class CompositePropagator implements TextMapPropagator { | ||
private readonly _propagators; | ||
@@ -6,0 +6,0 @@ private readonly _logger; |
@@ -1,2 +0,2 @@ | ||
import { Context, GetterFunction, HttpTextPropagator, SetterFunction, SpanContext } from '@opentelemetry/api'; | ||
import { Context, GetterFunction, TextMapPropagator, SetterFunction, SpanContext } from '@opentelemetry/api'; | ||
export declare const TRACE_PARENT_HEADER = "traceparent"; | ||
@@ -21,3 +21,3 @@ export declare const TRACE_STATE_HEADER = "tracestate"; | ||
*/ | ||
export declare class HttpTraceContext implements HttpTextPropagator { | ||
export declare class HttpTraceContext implements TextMapPropagator { | ||
inject(context: Context, carrier: unknown, setter: SetterFunction): void; | ||
@@ -24,0 +24,0 @@ extract(context: Context, carrier: unknown, getter: GetterFunction): Context; |
@@ -1,2 +0,2 @@ | ||
import { HttpTextPropagator, Logger } from '@opentelemetry/api'; | ||
import { TextMapPropagator, Logger } from '@opentelemetry/api'; | ||
/** Configuration object for composite propagator */ | ||
@@ -9,3 +9,3 @@ export interface CompositePropagatorConfig { | ||
*/ | ||
propagators?: HttpTextPropagator[]; | ||
propagators?: TextMapPropagator[]; | ||
/** Instance of logger */ | ||
@@ -12,0 +12,0 @@ logger?: Logger; |
@@ -1,2 +0,2 @@ | ||
import { Context, GetterFunction, HttpTextPropagator, SetterFunction } from '@opentelemetry/api'; | ||
import { Context, GetterFunction, TextMapPropagator, SetterFunction } from '@opentelemetry/api'; | ||
export declare const CORRELATION_CONTEXT_HEADER = "otcorrelations"; | ||
@@ -12,3 +12,3 @@ export declare const MAX_NAME_VALUE_PAIRS = 180; | ||
*/ | ||
export declare class HttpCorrelationContext implements HttpTextPropagator { | ||
export declare class HttpCorrelationContext implements TextMapPropagator { | ||
inject(context: Context, carrier: unknown, setter: SetterFunction): void; | ||
@@ -15,0 +15,0 @@ private _serializeKeyPairs; |
/// <reference types="node" /> | ||
export declare function unrefTimer(timer: NodeJS.Timeout): void; | ||
export declare function unrefTimer(timer: NodeJS.Timer): void; | ||
//# sourceMappingURL=timer-util.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.10.3-alpha.35+2ee9f1a"; | ||
export declare const VERSION = "0.10.3-alpha.40+2052a24"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -20,3 +20,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.10.3-alpha.35+2ee9f1a'; | ||
exports.VERSION = '0.10.3-alpha.40+2052a24'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/core", | ||
"version": "0.10.3-alpha.35+2ee9f1a", | ||
"version": "0.10.3-alpha.40+2052a24", | ||
"description": "OpenTelemetry Core provides default and no-op implementations of the OpenTelemetry types for trace and metrics", | ||
@@ -80,7 +80,7 @@ "main": "build/src/index.js", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.10.3-alpha.35+2ee9f1a", | ||
"@opentelemetry/api": "^0.10.2", | ||
"@opentelemetry/context-base": "^0.10.2", | ||
"semver": "^7.1.3" | ||
}, | ||
"gitHead": "2ee9f1aaf7b61c4b4ae6b748f0a07f8fc708f07e" | ||
"gitHead": "2052a245bce0d7a6ddc273cb3657bed5d3d21dc4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
168361
2722
+ Added@opentelemetry/api@0.10.2(transitive)
- Removed@opentelemetry/api@0.10.3-canary.0(transitive)
- Removed@opentelemetry/context-base@0.10.3-canary.0(transitive)
Updated@opentelemetry/api@^0.10.2