-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Labels
Meta: Help WantedPackage: browserIssues related to the Sentry Browser SDKIssues related to the Sentry Browser SDK
Description
Description
Similar to getsentry/sentry-cocoa#3931, we can add a pluggable (=not enabled by default) integration to @sentry/browser
(and downstream SDKs) which allows to opt-in to get better breadcrumbs & spans when using GraphQL as a client.
This could behave like this:
Sentry.init({
integrations: [
Sentry.graphqlClientIntegration({
endpoints: ['/graphql'],
})
]
})
Where any http.client span or breadcrumb created that matches endpoints
will be enhanced with graphql data from the request payload:
- For
http.client
spans, we can update the span name similar to what we do here in node: feat(node): AdduseOperationNameForRootSpan
tographqlIntegration
#13248 - For breadcrumbs, we can add the operation name to the breadcrumb data (and possibly also the query itself)
related: #13215
Metadata
Metadata
Assignees
Labels
Meta: Help WantedPackage: browserIssues related to the Sentry Browser SDKIssues related to the Sentry Browser SDK