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
We want to provide better GraphQL support with Sentry SDKs, frontend to backend. Work has already begun on some mobile platforms. There is also already some implementations for GraphQL server and client side. With the current work we want to ensure that the strategy to ensure proper connected errors and grouping works from backend to frontend. Java already has an integration for GraphQL.
Proposal
Java SDK should set context for GraphQL on errors same as what is done for Mobile SDK to ensure the value add from Frontend to Backend
Opt-in by default due to PII (requires request and response payload).
Set event.request.api_target to graphql
Populate the event.request including the data field (request payload)
Populate the event.contexts.response including the data field (response payload)
Set event.fingerprints to [$operationName, $operationType, $statusCode] (Only if stack traces are arbitrary, otherwise the default fingerprint is fine).
Set event.values.exception.mechanism.type so we can track adoption.
Propagating Trace (without performance)
Changes most likely here.
Just need to figure out how to enrich the event with the GraphQL context that is provided by the library, which data loader or resolver failed? the reason? etc.
Background
We want to provide better GraphQL support with Sentry SDKs, frontend to backend. Work has already begun on some mobile platforms. There is also already some implementations for GraphQL server and client side. With the current work we want to ensure that the strategy to ensure proper connected errors and grouping works from backend to frontend. Java already has an integration for GraphQL.
Proposal
Java SDK should set context for GraphQL on errors same as what is done for Mobile SDK to ensure the value add from Frontend to Backend
Definition of Done TBC:
Further context:
getsentry/sentry#50230
feat(graphql): Add special rendering logic for graphql requests sentry#50764
Ideally sentry-graphql, we could do code sharing with sentry-apollo, both written in Java
The text was updated successfully, but these errors were encountered: