hyperdxio / hyperdxio/hyperdx-js
`bun` runtime compatibility issue with `@hyperdx/node-opentelemetry`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 25
- Forks
- 30
- Avg merge
- 4h 26m
- Merged PRs (30d)
- 6
Description
The @hyperdx/node-opentelemetry package fails to initialize when running under Bun runtime due to an unimplemented perf_hooks.monitorEventLoopDelay API.
Error Logs
NotImplementedError: perf_hooks.monitorEventLoopDelay is not yet implemented in Bun.
code: "ERR_NOT_IMPLEMENTED"
at monitorEventLoopDelay (node:perf_hooks:138:24)
at new EventLoopDelayCollector (D:\Projects\core\node_modules\@opentelemetry\instrumentation-runtime-node\build\src\metrics\eventLoopDelayCollector.js:42:38)
at new RuntimeNodeInstrumentation (D:\Projects\core\node_modules\@opentelemetry\instrumentation-runtime-node\build\src\instrumentation.js:38:13)
at initSDK (D:\Projects\core\node_modules\@hyperdx\node-opentelemetry\build\src\otel.js:184:9)
Environment
- Runtime: Bun
- Package: @hyperdx/node-opentelemetry v0.8.2
- node --version v18.18.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure under Bun using the reported @hyperdx/node-opentelemetry version, then trace initialization from initSDK in build/src/otel.js to EventLoopDelayCollector and the failing perf_hooks.monitorEventLoopDelay call. Confirm the package initializes successfully under Bun without the reported NotImplementedError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, node.js, typescript
- Domain
- observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100