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

add undici HTTP client instrumentation #2383

Closed
trentm opened this issue Oct 20, 2021 · 4 comments · Fixed by #2858
Closed

add undici HTTP client instrumentation #2383

trentm opened this issue Oct 20, 2021 · 4 comments · Fixed by #2858
Assignees
Labels
agent-nodejs Make available for APM Agents project planning. kibana
Milestone

Comments

@trentm
Copy link
Member

trentm commented Oct 20, 2021

Add instrumentation support for undici.
@elastic/elasticsearch@8 is (optionally) using it now and it is gaining traction in the community.

@github-actions github-actions bot added the agent-nodejs Make available for APM Agents project planning. label Oct 20, 2021
@mcollina
Copy link

I would recommend using https://github.com/nodejs/undici/blob/main/docs/api/DiagnosticsChannel.md for instrumenting. This will avoid most of the monkeypatching.

@trentm
Copy link
Member Author

trentm commented Oct 20, 2021

@mcollina Thanks! Your GitHub-notification-fu is strong. :) @delvedor Has been encouraging and suggesting diagnostics_channel as well.

@mcollina
Copy link

It's all @delvedor fault!

@trentm
Copy link
Member Author

trentm commented Aug 4, 2022

Here is a trace of a small undici-using script that makes four calls to a local HTTP server, using pipelining: 2:

Screen Shot 2022-08-04 at 2 54 49 PM

APM-Agents (OLD) automation moved this from In Progress to Done Aug 11, 2022
n-e pushed a commit to keplr-team/apm-agent-nodejs that referenced this issue Aug 12, 2022
Instrument the undici HTTP client library and Node's core `fetch()`.

Closes: elastic#2383
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-nodejs Make available for APM Agents project planning. kibana
Projects
Development

Successfully merging a pull request may close this issue.

4 participants