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
Root spans are currently named by otel and are cumbersome to retroactively change to a more meaningful name. See #12887 (comment).
Brainstorm
Add an option akin to inferRootSpanNameFromGraphQLOperation: boolean (naming TBD) to our GraphQL instrumentation to update the name of the root span to that of the (last) child span that has a graphql.operation.name set.
The text was updated successfully, but these errors were encountered:
…13248)
This introduces a new option for the `graphqlIntegration`,
`useOperationNameForRootSpan`, which is by default `true` but can be
disabled in integration settings like this: `Sentry.graphqlIntegration({
useOperationNameForRootSpan: true })`.
With this setting enabled, the graphql instrumentation will update the
`http.server` root span it is in (if there is one) will be appended to
the span name. So instead of having all root spans be `POST /graphql`,
the names will now be e.g. `POST /graphql (query MyQuery)`.
If there are multiple operations in a single http request, they will be
appended like `POST /graphql (query Query1, query Query2)`, up to a
limit of 5, at which point they will be appended as `+2` or similar.
Closes#13238
Description
Root spans are currently named by otel and are cumbersome to retroactively change to a more meaningful name. See #12887 (comment).
Brainstorm
Add an option akin to
inferRootSpanNameFromGraphQLOperation: boolean
(naming TBD) to our GraphQL instrumentation to update the name of the root span to that of the (last) child span that has agraphql.operation.name
set.The text was updated successfully, but these errors were encountered: