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
The
@hyperdx/node-opentelemetrypackage fails to initialize when running under Bun runtime due to an unimplementedperf_hooks.monitorEventLoopDelayAPI.Error Logs
Environment