Skip to content

bun runtime compatibility issue with @hyperdx/node-opentelemetry #189

@siddhantprateek

Description

@siddhantprateek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions