Skip to content

fix: enable bun.js by catching NotImplemented error - #624

Merged
SimenB merged 4 commits into
prometheus:masterfrom
owlcode:master
Apr 8, 2024
Merged

fix: enable bun.js by catching NotImplemented error#624
SimenB merged 4 commits into
prometheus:masterfrom
owlcode:master

Conversation

@owlcode

@owlcode owlcode commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

Catch error thrown by bun.js when calling perf_hooks.monitorEventLoopDelay

Following up on #599 - bun.js already introduced some of the missing APIs (or created stubs) so to the best of my knowledge this is the last thing which is required to make default gc stats work for bun (at least it worked for me with this change).

Error is also reported in bun's repository - oven-sh/bun#4708 (comment)

Fixes #570
Closes #623

Comment thread lib/metrics/eventLoopLag.js Outdated
Comment thread lib/metrics/heapSpacesSizeAndUsed.js Outdated
@owlcode
owlcode requested a review from SimenB April 3, 2024 08:45
@SimenB

SimenB commented Apr 3, 2024

Copy link
Copy Markdown
Collaborator

Can you include the CI stuff from #599?

@owlcode

owlcode commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

Can you include the CI stuff from #599?

Done

@SimenB SimenB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@SimenB
SimenB merged commit 99b25a4 into prometheus:master Apr 8, 2024
@SimenB

SimenB commented Apr 16, 2024

Copy link
Copy Markdown
Collaborator

https://github.com/siimon/prom-client/releases/tag/v15.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide exclusions for default metrics collected Is it possible to use in Bun/Deno/other runtime?

2 participants