@opentelemetry/core
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -25,1 +25,2 @@ /*! | ||
} | ||
//# sourceMappingURL=ConsoleLogger.d.ts.map |
@@ -24,1 +24,2 @@ /*! | ||
} | ||
//# sourceMappingURL=NoopLogger.d.ts.map |
@@ -16,3 +16,3 @@ /*! | ||
*/ | ||
import * as types from '@opentelemetry/api'; | ||
import * as api from '@opentelemetry/api'; | ||
/** | ||
@@ -22,3 +22,3 @@ * Returns an hrtime calculated via performance component. | ||
*/ | ||
export declare function hrTime(performanceNow?: number): types.HrTime; | ||
export declare function hrTime(performanceNow?: number): api.HrTime; | ||
/** | ||
@@ -29,3 +29,3 @@ * | ||
*/ | ||
export declare function timeInputToHrTime(time: types.TimeInput): types.HrTime; | ||
export declare function timeInputToHrTime(time: api.TimeInput): api.HrTime; | ||
/** | ||
@@ -36,3 +36,3 @@ * Returns a duration of two hrTime. | ||
*/ | ||
export declare function hrTimeDuration(startTime: types.HrTime, endTime: types.HrTime): types.HrTime; | ||
export declare function hrTimeDuration(startTime: api.HrTime, endTime: api.HrTime): api.HrTime; | ||
/** | ||
@@ -42,3 +42,3 @@ * Convert hrTime to timestamp, for example "2019-05-14T17:00:00.000123456Z" | ||
*/ | ||
export declare function hrTimeToTimeStamp(hrTime: types.HrTime): string; | ||
export declare function hrTimeToTimeStamp(hrTime: api.HrTime): string; | ||
/** | ||
@@ -48,3 +48,3 @@ * Convert hrTime to nanoseconds. | ||
*/ | ||
export declare function hrTimeToNanoseconds(hrTime: types.HrTime): number; | ||
export declare function hrTimeToNanoseconds(hrTime: api.HrTime): number; | ||
/** | ||
@@ -54,3 +54,3 @@ * Convert hrTime to milliseconds. | ||
*/ | ||
export declare function hrTimeToMilliseconds(hrTime: types.HrTime): number; | ||
export declare function hrTimeToMilliseconds(hrTime: api.HrTime): number; | ||
/** | ||
@@ -60,3 +60,3 @@ * Convert hrTime to microseconds. | ||
*/ | ||
export declare function hrTimeToMicroseconds(hrTime: types.HrTime): number; | ||
export declare function hrTimeToMicroseconds(hrTime: api.HrTime): number; | ||
/** | ||
@@ -72,1 +72,2 @@ * check if time is HrTime | ||
export declare function isTimeInput(value: unknown): boolean; | ||
//# sourceMappingURL=time.d.ts.map |
@@ -42,1 +42,2 @@ /*! | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -56,1 +56,2 @@ /*! | ||
export declare function getParentSpanContext(context: Context): SpanContext | undefined; | ||
//# sourceMappingURL=context.d.ts.map |
@@ -28,1 +28,2 @@ /*! | ||
} | ||
//# sourceMappingURL=B3Propagator.d.ts.map |
@@ -23,3 +23,3 @@ "use strict"; | ||
exports.X_B3_SAMPLED = 'x-b3-sampled'; | ||
const VALID_TRACEID_REGEX = /^[0-9a-f]{32}$/i; | ||
const VALID_TRACEID_REGEX = /^([0-9a-f]{16}){1,2}$/i; | ||
const VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i; | ||
@@ -59,3 +59,3 @@ const INVALID_ID_REGEX = /^0+$/i; | ||
const sampledHeader = getter(carrier, exports.X_B3_SAMPLED); | ||
const traceId = Array.isArray(traceIdHeader) | ||
const traceIdHeaderValue = Array.isArray(traceIdHeader) | ||
? traceIdHeader[0] | ||
@@ -67,4 +67,6 @@ : traceIdHeader; | ||
: sampledHeader; | ||
if (typeof traceId !== 'string' || typeof spanId !== 'string') | ||
if (typeof traceIdHeaderValue !== 'string' || typeof spanId !== 'string') { | ||
return context; | ||
} | ||
const traceId = traceIdHeaderValue.padStart(32, '0'); | ||
if (isValidTraceId(traceId) && isValidSpanId(spanId)) { | ||
@@ -71,0 +73,0 @@ return context_1.setExtractedSpanContext(context, { |
@@ -49,1 +49,2 @@ /*! | ||
} | ||
//# sourceMappingURL=composite.d.ts.map |
@@ -40,1 +40,2 @@ /*! | ||
} | ||
//# sourceMappingURL=HttpTraceContext.d.ts.map |
@@ -28,1 +28,2 @@ /*! | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
@@ -20,2 +20,3 @@ /*! | ||
export * from './common/types'; | ||
export * from './ExportResult'; | ||
export * from './version'; | ||
@@ -28,3 +29,2 @@ export * from './context/context'; | ||
export * from './platform'; | ||
export * from './trace/instrumentation/BasePlugin'; | ||
export * from './trace/NoRecordingSpan'; | ||
@@ -36,1 +36,2 @@ export * from './trace/sampler/ProbabilitySampler'; | ||
export * from './utils/wrap'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -25,2 +25,3 @@ "use strict"; | ||
__export(require("./common/types")); | ||
__export(require("./ExportResult")); | ||
__export(require("./version")); | ||
@@ -32,3 +33,2 @@ __export(require("./context/context")); | ||
__export(require("./platform")); | ||
__export(require("./trace/instrumentation/BasePlugin")); | ||
__export(require("./trace/NoRecordingSpan")); | ||
@@ -35,0 +35,0 @@ __export(require("./trace/sampler/ProbabilitySampler")); |
@@ -30,1 +30,2 @@ /*! | ||
export declare function validateValue(value: string): boolean; | ||
//# sourceMappingURL=validators.d.ts.map |
@@ -21,1 +21,2 @@ /*! | ||
export declare function hexToBase64(hexStr: string): string; | ||
//# sourceMappingURL=hex-to-base64.d.ts.map |
@@ -20,1 +20,2 @@ /*! | ||
export declare function randomSpanId(): string; | ||
//# sourceMappingURL=id.d.ts.map |
@@ -16,5 +16,8 @@ /*! | ||
*/ | ||
export * from './BasePlugin'; | ||
export * from './hex-to-base64'; | ||
export * from './id'; | ||
export * from './performance'; | ||
export * from './sdk-info'; | ||
export * from './timer-util'; | ||
export * from './hex-to-base64'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -21,6 +21,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./BasePlugin")); | ||
__export(require("./hex-to-base64")); | ||
__export(require("./id")); | ||
__export(require("./performance")); | ||
__export(require("./sdk-info")); | ||
__export(require("./timer-util")); | ||
__export(require("./hex-to-base64")); | ||
//# sourceMappingURL=index.js.map |
@@ -17,1 +17,2 @@ /*! | ||
export declare const otperformance: Performance; | ||
//# sourceMappingURL=performance.d.ts.map |
@@ -18,1 +18,2 @@ /** | ||
export declare function unrefTimer(timer: number): void; | ||
//# sourceMappingURL=timer-util.d.ts.map |
@@ -17,1 +17,2 @@ /*! | ||
export * from './node'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -21,1 +21,2 @@ /*! | ||
export declare function hexToBase64(hexStr: string): string; | ||
//# sourceMappingURL=hex-to-base64.d.ts.map |
@@ -26,1 +26,2 @@ /*! | ||
export declare function randomSpanId(): string; | ||
//# sourceMappingURL=id.d.ts.map |
@@ -16,5 +16,8 @@ /*! | ||
*/ | ||
export * from './BasePlugin'; | ||
export * from './id'; | ||
export * from './performance'; | ||
export * from './sdk-info'; | ||
export * from './timer-util'; | ||
export * from './hex-to-base64'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -21,6 +21,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./BasePlugin")); | ||
__export(require("./id")); | ||
__export(require("./performance")); | ||
__export(require("./sdk-info")); | ||
__export(require("./timer-util")); | ||
__export(require("./hex-to-base64")); | ||
//# sourceMappingURL=index.js.map |
@@ -18,1 +18,2 @@ /*! | ||
export declare const otperformance: import("perf_hooks").Performance; | ||
//# sourceMappingURL=performance.d.ts.map |
@@ -22,1 +22,2 @@ /** | ||
export declare function unrefTimer(timer: NodeJS.Timeout): void; | ||
//# sourceMappingURL=timer-util.d.ts.map |
@@ -48,1 +48,2 @@ /*! | ||
} | ||
//# sourceMappingURL=BasePlugin.d.ts.map |
@@ -26,1 +26,2 @@ /*! | ||
} | ||
//# sourceMappingURL=NoRecordingSpan.d.ts.map |
@@ -27,1 +27,2 @@ /*! | ||
export declare const NEVER_SAMPLER: ProbabilitySampler; | ||
//# sourceMappingURL=ProbabilitySampler.d.ts.map |
@@ -25,1 +25,2 @@ /*! | ||
export declare function isValid(spanContext: SpanContext): boolean; | ||
//# sourceMappingURL=spancontext-utils.d.ts.map |
@@ -16,3 +16,3 @@ /*! | ||
*/ | ||
import * as types from '@opentelemetry/api'; | ||
import * as api from '@opentelemetry/api'; | ||
/** | ||
@@ -27,3 +27,3 @@ * TraceState must be a class and not a simple object type because of the spec | ||
*/ | ||
export declare class TraceState implements types.TraceState { | ||
export declare class TraceState implements api.TraceState { | ||
private _internalState; | ||
@@ -38,1 +38,2 @@ constructor(rawTraceState?: string); | ||
} | ||
//# sourceMappingURL=TraceState.d.ts.map |
@@ -28,1 +28,2 @@ /*! | ||
export declare function isUrlIgnored(url: string, ignoredUrls?: Array<string | RegExp>): boolean; | ||
//# sourceMappingURL=url.d.ts.map |
@@ -21,1 +21,2 @@ /*! | ||
export declare function isWrapped(func: any): boolean; | ||
//# sourceMappingURL=wrap.d.ts.map |
@@ -16,2 +16,3 @@ /*! | ||
*/ | ||
export declare const VERSION = "0.7.0"; | ||
export declare const VERSION = "0.8.0"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -19,3 +19,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.7.0'; | ||
exports.VERSION = '0.8.0'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@opentelemetry/core", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "OpenTelemetry Core provides default and no-op implementations of the OpenTelemetry types for trace and metrics", | ||
@@ -13,3 +13,3 @@ "main": "build/src/index.js", | ||
"scripts": { | ||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts", | ||
"test": "nyc ts-mocha -p tsconfig.json test/**/*.test.ts --exclude 'test/platform/browser/**/*.ts'", | ||
"test:browser": "nyc karma start --single-run", | ||
@@ -82,6 +82,6 @@ "tdd": "npm run tdd:node", | ||
"dependencies": { | ||
"@opentelemetry/api": "^0.7.0", | ||
"@opentelemetry/context-base": "^0.7.0", | ||
"@opentelemetry/api": "^0.8.0", | ||
"@opentelemetry/context-base": "^0.8.0", | ||
"semver": "^7.1.3" | ||
} | ||
} |
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
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
121556
75
2581
4
+ Added@opentelemetry/api@0.8.3(transitive)
+ Added@opentelemetry/context-base@0.8.3(transitive)
- Removed@opentelemetry/api@0.7.0(transitive)
- Removed@opentelemetry/context-base@0.7.0(transitive)
Updated@opentelemetry/api@^0.8.0