Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called. NotImplementedError: perf_hooks.monitorEventLoopDelay is not yet implemented in Bun. #14457

Open
ankl209 opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working node:async_hooks

Comments

@ankl209
Copy link

ankl209 commented Oct 10, 2024

What version of Bun is running?

1.1.30

What platform is your computer?

Linux 4.19.91-27.1.al7.x86_64 x86_64 unknown

What steps can reproduce the bug?

bun install elastic-apm-node
Errors are reported when using this module

What is the expected behavior?

bun supports async_hooks.createHook

What do you see instead?

"nodejs.memory.heap.used.bytes": 0,
"nodejs.memory.arrayBuffers.bytes": 0
^
code: "ERR_NOT_IMPLEMENTED"
-
at monitorEventLoopDelay (node:perf_hooks:138:24)
at createRuntimeMetrics (/home/build/main.js:34140:23)
at /home/build/main.js:38670:19
at /home/build/main.js:2:45
2024-10-10T02:40:21.111Z require-in-the-middle registering require hook
[bun] Warning: async_hooks.createHook is not implemented in Bun. Hooks can still be created but will never be called.
"nodejs.memory.external.bytes": 0,
 };
NotImplementedError: perf_hooks.monitorEventLoopDelay is not yet implemented in Bun.
-
at new RuntimeCollector (/home/build/main.js:34117:23)
at start (/home/build/main.js:34508:30)
Bun v1.1.29 (Linux x64 baseline)
at /home/build/main.js:1141806:9

Additional information

No response

@ankl209 ankl209 added bug Something isn't working needs triage labels Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node:async_hooks
Projects
None yet
Development

No branches or pull requests

2 participants