@opentelemetry/otlp-transformer
Advanced tools
Comparing version 0.46.0 to 0.47.0
@@ -8,4 +8,4 @@ import type { OtlpEncodingOptions, Fixed64, LongBits } from './types'; | ||
export declare type HrTimeEncodeFunction = (hrTime: HrTime) => Fixed64; | ||
export declare type SpanContextEncodeFunction = (spanContext: string) => string; | ||
export declare type OptionalSpanContextEncodeFunction = (spanContext: string | undefined) => string | undefined; | ||
export declare type SpanContextEncodeFunction = (spanContext: string) => string | Uint8Array; | ||
export declare type OptionalSpanContextEncodeFunction = (spanContext: string | undefined) => string | Uint8Array | undefined; | ||
export interface Encoder { | ||
@@ -12,0 +12,0 @@ encodeHrTime: HrTimeEncodeFunction; |
@@ -16,3 +16,3 @@ /* | ||
*/ | ||
import { hexToBase64, hrTimeToNanoseconds } from '@opentelemetry/core'; | ||
import { hexToBinary, hrTimeToNanoseconds } from '@opentelemetry/core'; | ||
var NANOSECONDS = BigInt(1000000000); | ||
@@ -39,11 +39,11 @@ export function hrTimeToNanos(hrTime) { | ||
} | ||
function optionalHexToBase64(str) { | ||
function optionalHexToBinary(str) { | ||
if (str === undefined) | ||
return undefined; | ||
return hexToBase64(str); | ||
return hexToBinary(str); | ||
} | ||
var DEFAULT_ENCODER = { | ||
encodeHrTime: encodeAsLongBits, | ||
encodeSpanContext: hexToBase64, | ||
encodeOptionalSpanContext: optionalHexToBase64, | ||
encodeSpanContext: hexToBinary, | ||
encodeOptionalSpanContext: optionalHexToBinary, | ||
}; | ||
@@ -59,6 +59,6 @@ export function getOtlpEncoder(options) { | ||
encodeHrTime: useLongBits ? encodeAsLongBits : encodeTimestamp, | ||
encodeSpanContext: useHex ? identity : hexToBase64, | ||
encodeOptionalSpanContext: useHex ? identity : optionalHexToBase64, | ||
encodeSpanContext: useHex ? identity : hexToBinary, | ||
encodeOptionalSpanContext: useHex ? identity : optionalHexToBinary, | ||
}; | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -55,5 +55,5 @@ import type { Fixed64, IAnyValue, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** LogRecord traceId */ | ||
traceId?: string; | ||
traceId?: string | Uint8Array; | ||
/** LogRecord spanId */ | ||
spanId?: string; | ||
spanId?: string | Uint8Array; | ||
} | ||
@@ -60,0 +60,0 @@ /** |
@@ -201,5 +201,5 @@ import { Fixed64, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** Exemplar spanId */ | ||
spanId?: string; | ||
spanId?: string | Uint8Array; | ||
/** Exemplar traceId */ | ||
traceId?: string; | ||
traceId?: string | Uint8Array; | ||
} | ||
@@ -206,0 +206,0 @@ /** |
@@ -39,9 +39,9 @@ import { Fixed64, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** Span traceId */ | ||
traceId: string; | ||
traceId: string | Uint8Array; | ||
/** Span spanId */ | ||
spanId: string; | ||
spanId: string | Uint8Array; | ||
/** Span traceState */ | ||
traceState?: string | null; | ||
/** Span parentSpanId */ | ||
parentSpanId?: string; | ||
parentSpanId?: string | Uint8Array; | ||
/** Span name */ | ||
@@ -130,5 +130,5 @@ name: string; | ||
/** Link traceId */ | ||
traceId: string; | ||
traceId: string | Uint8Array; | ||
/** Link spanId */ | ||
spanId: string; | ||
spanId: string | Uint8Array; | ||
/** Link traceState */ | ||
@@ -135,0 +135,0 @@ traceState?: string; |
@@ -8,4 +8,4 @@ import type { OtlpEncodingOptions, Fixed64, LongBits } from './types'; | ||
export declare type HrTimeEncodeFunction = (hrTime: HrTime) => Fixed64; | ||
export declare type SpanContextEncodeFunction = (spanContext: string) => string; | ||
export declare type OptionalSpanContextEncodeFunction = (spanContext: string | undefined) => string | undefined; | ||
export declare type SpanContextEncodeFunction = (spanContext: string) => string | Uint8Array; | ||
export declare type OptionalSpanContextEncodeFunction = (spanContext: string | undefined) => string | Uint8Array | undefined; | ||
export interface Encoder { | ||
@@ -12,0 +12,0 @@ encodeHrTime: HrTimeEncodeFunction; |
@@ -16,3 +16,3 @@ /* | ||
*/ | ||
import { hexToBase64, hrTimeToNanoseconds } from '@opentelemetry/core'; | ||
import { hexToBinary, hrTimeToNanoseconds } from '@opentelemetry/core'; | ||
const NANOSECONDS = BigInt(1000000000); | ||
@@ -39,11 +39,11 @@ export function hrTimeToNanos(hrTime) { | ||
} | ||
function optionalHexToBase64(str) { | ||
function optionalHexToBinary(str) { | ||
if (str === undefined) | ||
return undefined; | ||
return hexToBase64(str); | ||
return hexToBinary(str); | ||
} | ||
const DEFAULT_ENCODER = { | ||
encodeHrTime: encodeAsLongBits, | ||
encodeSpanContext: hexToBase64, | ||
encodeOptionalSpanContext: optionalHexToBase64, | ||
encodeSpanContext: hexToBinary, | ||
encodeOptionalSpanContext: optionalHexToBinary, | ||
}; | ||
@@ -59,6 +59,6 @@ export function getOtlpEncoder(options) { | ||
encodeHrTime: useLongBits ? encodeAsLongBits : encodeTimestamp, | ||
encodeSpanContext: useHex ? identity : hexToBase64, | ||
encodeOptionalSpanContext: useHex ? identity : optionalHexToBase64, | ||
encodeSpanContext: useHex ? identity : hexToBinary, | ||
encodeOptionalSpanContext: useHex ? identity : optionalHexToBinary, | ||
}; | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -55,5 +55,5 @@ import type { Fixed64, IAnyValue, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** LogRecord traceId */ | ||
traceId?: string; | ||
traceId?: string | Uint8Array; | ||
/** LogRecord spanId */ | ||
spanId?: string; | ||
spanId?: string | Uint8Array; | ||
} | ||
@@ -60,0 +60,0 @@ /** |
@@ -201,5 +201,5 @@ import { Fixed64, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** Exemplar spanId */ | ||
spanId?: string; | ||
spanId?: string | Uint8Array; | ||
/** Exemplar traceId */ | ||
traceId?: string; | ||
traceId?: string | Uint8Array; | ||
} | ||
@@ -206,0 +206,0 @@ /** |
@@ -39,9 +39,9 @@ import { Fixed64, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** Span traceId */ | ||
traceId: string; | ||
traceId: string | Uint8Array; | ||
/** Span spanId */ | ||
spanId: string; | ||
spanId: string | Uint8Array; | ||
/** Span traceState */ | ||
traceState?: string | null; | ||
/** Span parentSpanId */ | ||
parentSpanId?: string; | ||
parentSpanId?: string | Uint8Array; | ||
/** Span name */ | ||
@@ -130,5 +130,5 @@ name: string; | ||
/** Link traceId */ | ||
traceId: string; | ||
traceId: string | Uint8Array; | ||
/** Link spanId */ | ||
spanId: string; | ||
spanId: string | Uint8Array; | ||
/** Link traceState */ | ||
@@ -135,0 +135,0 @@ traceState?: string; |
@@ -8,4 +8,4 @@ import type { OtlpEncodingOptions, Fixed64, LongBits } from './types'; | ||
export declare type HrTimeEncodeFunction = (hrTime: HrTime) => Fixed64; | ||
export declare type SpanContextEncodeFunction = (spanContext: string) => string; | ||
export declare type OptionalSpanContextEncodeFunction = (spanContext: string | undefined) => string | undefined; | ||
export declare type SpanContextEncodeFunction = (spanContext: string) => string | Uint8Array; | ||
export declare type OptionalSpanContextEncodeFunction = (spanContext: string | undefined) => string | Uint8Array | undefined; | ||
export interface Encoder { | ||
@@ -12,0 +12,0 @@ encodeHrTime: HrTimeEncodeFunction; |
@@ -45,11 +45,11 @@ "use strict"; | ||
} | ||
function optionalHexToBase64(str) { | ||
function optionalHexToBinary(str) { | ||
if (str === undefined) | ||
return undefined; | ||
return (0, core_1.hexToBase64)(str); | ||
return (0, core_1.hexToBinary)(str); | ||
} | ||
const DEFAULT_ENCODER = { | ||
encodeHrTime: encodeAsLongBits, | ||
encodeSpanContext: core_1.hexToBase64, | ||
encodeOptionalSpanContext: optionalHexToBase64, | ||
encodeSpanContext: core_1.hexToBinary, | ||
encodeOptionalSpanContext: optionalHexToBinary, | ||
}; | ||
@@ -65,4 +65,4 @@ function getOtlpEncoder(options) { | ||
encodeHrTime: useLongBits ? encodeAsLongBits : encodeTimestamp, | ||
encodeSpanContext: useHex ? identity : core_1.hexToBase64, | ||
encodeOptionalSpanContext: useHex ? identity : optionalHexToBase64, | ||
encodeSpanContext: useHex ? identity : core_1.hexToBinary, | ||
encodeOptionalSpanContext: useHex ? identity : optionalHexToBinary, | ||
}; | ||
@@ -69,0 +69,0 @@ } |
@@ -55,5 +55,5 @@ import type { Fixed64, IAnyValue, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** LogRecord traceId */ | ||
traceId?: string; | ||
traceId?: string | Uint8Array; | ||
/** LogRecord spanId */ | ||
spanId?: string; | ||
spanId?: string | Uint8Array; | ||
} | ||
@@ -60,0 +60,0 @@ /** |
@@ -201,5 +201,5 @@ import { Fixed64, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** Exemplar spanId */ | ||
spanId?: string; | ||
spanId?: string | Uint8Array; | ||
/** Exemplar traceId */ | ||
traceId?: string; | ||
traceId?: string | Uint8Array; | ||
} | ||
@@ -206,0 +206,0 @@ /** |
@@ -39,9 +39,9 @@ import { Fixed64, IInstrumentationScope, IKeyValue } from '../common/types'; | ||
/** Span traceId */ | ||
traceId: string; | ||
traceId: string | Uint8Array; | ||
/** Span spanId */ | ||
spanId: string; | ||
spanId: string | Uint8Array; | ||
/** Span traceState */ | ||
traceState?: string | null; | ||
/** Span parentSpanId */ | ||
parentSpanId?: string; | ||
parentSpanId?: string | Uint8Array; | ||
/** Span name */ | ||
@@ -130,5 +130,5 @@ name: string; | ||
/** Link traceId */ | ||
traceId: string; | ||
traceId: string | Uint8Array; | ||
/** Link spanId */ | ||
spanId: string; | ||
spanId: string | Uint8Array; | ||
/** Link traceState */ | ||
@@ -135,0 +135,0 @@ traceState?: string; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.46.0", | ||
"version": "0.47.0", | ||
"description": "Transform OpenTelemetry SDK data into OTLP", | ||
@@ -83,12 +83,12 @@ "module": "build/esm/index.js", | ||
"dependencies": { | ||
"@opentelemetry/api-logs": "0.46.0", | ||
"@opentelemetry/core": "1.19.0", | ||
"@opentelemetry/resources": "1.19.0", | ||
"@opentelemetry/sdk-logs": "0.46.0", | ||
"@opentelemetry/sdk-metrics": "1.19.0", | ||
"@opentelemetry/sdk-trace-base": "1.19.0" | ||
"@opentelemetry/api-logs": "0.47.0", | ||
"@opentelemetry/core": "1.20.0", | ||
"@opentelemetry/resources": "1.20.0", | ||
"@opentelemetry/sdk-logs": "0.47.0", | ||
"@opentelemetry/sdk-metrics": "1.20.0", | ||
"@opentelemetry/sdk-trace-base": "1.20.0" | ||
}, | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/otlp-transformer", | ||
"sideEffects": false, | ||
"gitHead": "d3c311aec24137084dc820805a2597e120335672" | ||
"gitHead": "57008533aba7ccd51ea80f38ff4f29404d47eb9c" | ||
} |
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
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
346531
+ Added@opentelemetry/api-logs@0.47.0(transitive)
+ Added@opentelemetry/core@1.20.0(transitive)
+ Added@opentelemetry/resources@1.20.0(transitive)
+ Added@opentelemetry/sdk-logs@0.47.0(transitive)
+ Added@opentelemetry/sdk-metrics@1.20.0(transitive)
+ Added@opentelemetry/sdk-trace-base@1.20.0(transitive)
+ Added@opentelemetry/semantic-conventions@1.20.0(transitive)
- Removed@opentelemetry/api-logs@0.46.0(transitive)
- Removed@opentelemetry/core@1.19.0(transitive)
- Removed@opentelemetry/resources@1.19.0(transitive)
- Removed@opentelemetry/sdk-logs@0.46.0(transitive)
- Removed@opentelemetry/sdk-metrics@1.19.0(transitive)
- Removed@opentelemetry/sdk-trace-base@1.19.0(transitive)
- Removed@opentelemetry/semantic-conventions@1.19.0(transitive)
Updated@opentelemetry/core@1.20.0