hyperdxio / hyperdxio/hyperdx-js

`bun` runtime compatibility issue with `@hyperdx/node-opentelemetry`

Open
#189 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.