-
I don't see opentelemetry headers of any sort on outbound http requests from Node 18 using the fetch api. Is this as intended? Or somehow configured separately from the normal http instrumentation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
the Http instrumentation applies only to the node http module not the http protocol in general. To monitor these modules someone has to write an instrumentation. |
Beta Was this translation helpful? Give feedback.
-
As flarna pointed out the fetch implementation comes from undici which is not handled by the http instrumentation, however there is a instrumentation available here for it: https://github.com/gadget-inc/opentelemetry-instrumentations/tree/main/packages/opentelemetry-instrumentation-undici |
Beta Was this translation helpful? Give feedback.
the Http instrumentation applies only to the node http module not the http protocol in general.
fetch, http2 (and also undici) are not using http module therefore no spans are created.
To monitor these modules someone has to write an instrumentation.