Error with OpenTelemetry Span Processor in Effect Typescript Library Example

i'm struggling to get otel traces logged anywhere outside of the console. when i follow the example https://effect.website/docs/observability/tracing/#tutorial-visualizing-traces-with-docker-prometheus-grafana-and-tempo directly, without alteration, i get the following error:
~/c0de/modernmd on feature/otel !3 ?2 ❯ bun run test.ts                                                                    at 12:40:42 
timestamp=2025-03-17T17:40:43.940Z level=ERROR fiber=#0 cause="TypeError: provider.addSpanProcessor is not a function. (In 'provider.addSpanProcessor(processor)', 'provider.addSpanProcessor' is undefined)
    at <anonymous> (/home/dlb/c0de/modernmd/node_modules/@effect/opentelemetry/dist/esm/NodeSdk.js:22:14)
    at Sync (/home/dlb/c0de/modernmd/node_modules/effect/dist/esm/internal/fiberRuntime.js:932:19)
    at runLoop (/home/dlb/c0de/modernmd/node_modules/effect/dist/esm/internal/fiberRuntime.js:1129:34)
    at evaluateEffect (/home/dlb/c0de/modernmd/node_modules/effect/dist/esm/internal/fiberRuntime.js:733:27)
    at evaluateMessageWhileSuspended (/home/dlb/c0de/modernmd/node_modules/effect/dist/esm/internal/fiberRuntime.js:708:16)
    at drainQueueOnCurrentThread (/home/dlb/c0de/modernmd/node_modules/effect/dist/esm/internal/fiberRuntime.js:486:85)
    at run (/home/dlb/c0de/modernmd/node_modules/effect/dist/esm/internal/fiberRuntime.js:1156:10)
    at starveInternal (/home/dlb/c0de/modernmd/node_modules/effect/dist/esm/Scheduler.js:68:15)"
Was this page helpful?