Replies: 1 comment 18 replies
-
Correct. Would you like to help and implement this? It would need to use https://github.com/nodejs/undici/blob/main/docs/api/DiagnosticsChannel.md to implement everything and restrain from massive monkeypatching. We will be happy to respond to any questions. |
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Does undici work out of the box with node auto-instrumentation for OTEL? https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/metapackages/auto-instrumentations-node
The auto instrumentation includes shims for the node core modules
node:http
,node:net
, etc.It seems that trace propagation across service boundaries will only work for libraries that are using
http.request
under the hood (e.g. node-fetch). Does undici usehttp.request
under the hood or does it use something more primitive liketcp.connect
instead? This might prevent the OTEL instrumentation from injecting the headers required for traces to get propagated?I also discovered that this package exists, but it might make sense to provide an "official" integration or recommendation: https://github.com/gadget-inc/opentelemetry-instrumentations
Update: Twitter user confirmed to me that it doesn’t work out of the box with the auto instrumentation
https://twitter.com/isntitvacant/status/1524869221280190464?s=21&t=PquRXpxyYTBYaDlk2uA9cA
Beta Was this translation helpful? Give feedback.
All reactions