You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The middleware spans end early (they only time middleware logic itself), which means that the child request handler span is longer than it's parent. I would expect middleware spans to contain the request handler in entirely, or the request handler to be parent under http server request span directly.
Additional context
The text was updated successfully, but these errors were encountered:
If the SIG feels like the fix is to just adjust the middleware/handler spans duration/end timestamps, happy to help with a PR (can take a look at express as well). Just need to be pointing in right direction here 😄
What version of OpenTelemetry are you using?
What version of Node are you using?
Node v21.6.2
What did you do?
Using default fastify instrumentation as per https://github.com/getsentry/sentry-javascript/blob/f6a3e026ac7f04eec78495a14c0c68f9e553e22d/packages/node/src/integrations/tracing/fastify.ts#L8-L23
What did you expect to see?
parent spans fully encapsulate their children.
What did you see instead?
The middleware spans end early (they only time middleware logic itself), which means that the child request handler span is longer than it's parent. I would expect middleware spans to contain the request handler in entirely, or the request handler to be parent under http server request span directly.
Additional context
The text was updated successfully, but these errors were encountered: