-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Description
Version: Deno 2.2.4
I encountered the following error when trying to enable the built-in Otel instrumentation.
error: Uncaught (in promise) TypeError: ArrayPrototypeSplit is not a function
at TraceStateClass._parse (ext:deno_telemetry/telemetry.ts:713:70)
at new TraceStateClass (ext:deno_telemetry/telemetry.ts:687:29)
at W3CTraceContextPropagator.extract (ext:deno_telemetry/telemetry.ts:764:32)
at mapped (ext:deno_http/00_serve.ts:463:36)
at ext:deno_http/00_serve.ts:651:29
at eventLoopTick (ext:core/01_core.js:177:7)
Based on the stack trace info, this error seems to be coming from here:
deno/ext/telemetry/telemetry.ts
Line 1334 in 33132ab
ArrayPrototypeSplit(rawTraceState, LIST_MEMBERS_SEPARATOR), |
As I can see, ArrayPrototypeSplit
is not defined in primordials.mjs
in Deno v2.2.4, which would be the root cause.
deno/ext/node/polyfills/internal/primordials.mjs
Lines 6 to 14 in 33132ab
export const ArrayPrototypeFilter = (that, ...args) => that.filter(...args); | |
export const ArrayPrototypeForEach = (that, ...args) => that.forEach(...args); | |
export const ArrayPrototypeIncludes = (that, ...args) => that.includes(...args); | |
export const ArrayPrototypeJoin = (that, ...args) => that.join(...args); | |
export const ArrayPrototypePush = (that, ...args) => that.push(...args); | |
export const ArrayPrototypeSlice = (that, ...args) => that.slice(...args); | |
export const ArrayPrototypeSome = (that, ...args) => that.some(...args); | |
export const ArrayPrototypeSort = (that, ...args) => that.sort(...args); | |
export const ArrayPrototypeUnshift = (that, ...args) => that.unshift(...args); |
aboodz
Metadata
Metadata
Assignees
Labels
No labels