Skip to content

Should opentelemetry-instrumentation-express propagate context? #3867

Answered by Flarna
Nighttraveler asked this question in Q&A
Discussion options

You must be logged in to vote

express is a server framework using node built in http internally.

The OTel instrumentations reflect this split:

  • HTTP instrumentation takes care of the basic HTTP part (extracting incoming trace context, set HTTP specific attributes,...)
  • Express takes care of the parts on top of this specific to express (trace middlewares, set the HTTP route,...)

This split has the advantage that the basic HTTP part is reuseable for other frameworks like Hapi, Fastify,...

Using one of these server framework instrumentations without the http instrumentation makes usually no sense.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Nighttraveler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants