[RUM-13452] [V3] Add support for GraphQL payload & error tracking #1090
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds support for
PayloadandErrorfor GraphQL requests. Allowing users to opt-in to those by setting up optional arguments when setting up theDatadogLinkin the@datadog/mobile-react-native-apollo-clientpackage.It also changes the default behaviur for the variable tracking, now also being optional and false by default.
GraphQL data (payload + errors) [android]:
https://mobile-integration.datadoghq.com/rum/sessions?query=%40type%3Asession%20%40application.id%3A056b6201-48cb-4acc-9fbc-48507b8e3e12&agg_m=count&agg_m_source=base&agg_t=count&event=AwAAAZucxXbWiXsxkgAAABhBWnVjeFhiV0FBQkllVDJ2ZnpmczMtei0AAAAkMDE5YjljYzUtYTRlYy00NWI2LTk3OTktZjMyMjZhZTE3MWMyAAAABA&fromUser=false&from_ts=1767775384123&to_ts=1767861784123&live=true
GraphQL data (payload + errors) [iOS]:
https://mobile-integration.datadoghq.com/rum/sessions?query=%40type%3Asession%20%40applicatio[…]&from_ts=1767776285213&to_ts=1767862685213&live=true
Additional Notes
This relies on a feature that is not yet released on Android, but can be merged since the target is an intermediate branch and not the final V3 branch, for that we'll need to wait for Android to release those changes and updated the android SDK dependency.
Review checklist (to be filled by reviewers)