graphqlIntegration: updating Sentry config removes responseHook
from otel config
#16004
Closed
3 tasks done
Labels
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
9.11.0
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
Important: I'm using late initialization using the ESM preload, which explains why
setConfig
is called twice.Steps to Reproduce
I added the following log line in otel's graphql instrumentation
@opentelemetry/instrumentation-graphql/build/src/instrumentation.js
:First init (during esm preload) logs:
Second init (during late Sentry initialization):
Expected Result
I would expect sentry to pass the
requestHook
again tosetConfig
so thatuseOperationNameForRootSpan
can be applied.Actual Result
responseHook
is not passedThe text was updated successfully, but these errors were encountered: