Closed
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.54.0
Framework Version
No response
Link to Sentry event
SDK Setup
Sentry.init({
dsn: "{DSN}",
integrations: [
new Sentry.Integrations.Http({ tracing: true }),
new Sentry.Integrations.Undici(),
new Sentry.Integrations.Express({ app }),
new Sentry.Integrations.Apollo(),
new Sentry.Integrations.GraphQL()
],
tracesSampleRate: 1.0,
})
Steps to Reproduce
- Clone https://github.com/sergiosentry/apollo-graphql-sentry
- Follow README to install package dependencies and run services
Expected Result
I expect the trace to be propagated from the gateway service to the accounts service via the /graphql request
These services should then be linked in Sentry with the same trace.
There is a request made to localhost:4001/ that was not traced correctly to that downstream service
Actual Result
The trace is not propagated to the downstream service (accounts/index.js)
It seems that we are not generating spans after the request is initialized and redirected to the GraphQL service.