@opentelemetry/instrumentation-http not capturing outgoing Axios requests in Node.js backend (Koa)
#5785
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm trying to use
@opentelemetry/instrumentation-httpin my Node.js backend project to capture all incoming & outgoing HTTP requests (client to server & server to external 3rd party APIs) - particularly those made via Axios. However, I noticed that none of the outgoing Axios calls are being captured in my spans.Here’s what I’ve done:
Setup
getNodeAutoInstrumentations(), Also tried with manualnew HttpInstrumentation()@opentelemetry/*versions: latestRelevant instrumentation code:
Problem:
requestHookandresponseHookare never triggered for Axios requests. (only triggered for incoming request)Questions:
@opentelemetry/instrumentation-httpexpected to capture outgoing Axios requests by default?Happy to share any other detail if needed.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions