Skip to content

RUM-1034 Add cross platform graphql attributes#1631

Merged
louiszawadzki merged 2 commits into
developfrom
louiszawadzki/RUM-1034/add-cross-platform-graphql-attributes
Sep 22, 2023
Merged

RUM-1034 Add cross platform graphql attributes#1631
louiszawadzki merged 2 commits into
developfrom
louiszawadzki/RUM-1034/add-cross-platform-graphql-attributes

Conversation

@louiszawadzki

@louiszawadzki louiszawadzki commented Sep 20, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

Enable cross platform SDKs to specify GraphQL attributes.

We remove all cross-platform attributes first, and only add the graphql object if the operation type is present.
The implementation might change in the future when we support GraphQL requests monitoring for Android, but it should not be hard to migrate the cross platform SDKs then.

Motivation

Support GraphQL for cross platform SDKs

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@louiszawadzki
louiszawadzki force-pushed the louiszawadzki/RUM-1034/add-cross-platform-graphql-attributes branch 3 times, most recently from 41f6f64 to 9b2d212 Compare September 21, 2023 08:34
@codecov-commenter

codecov-commenter commented Sep 21, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1631 (6b0e7ea) into develop (a0a0c47) will decrease coverage by 0.07%.
Report is 2 commits behind head on develop.
The diff coverage is 62.50%.

@@             Coverage Diff             @@
##           develop    #1631      +/-   ##
===========================================
- Coverage    83.77%   83.70%   -0.07%     
===========================================
  Files          452      452              
  Lines        15674    15696      +22     
  Branches      2331     2336       +5     
===========================================
+ Hits         13130    13138       +8     
- Misses        1917     1937      +20     
+ Partials       627      621       -6     
Files Changed Coverage Δ
...in/kotlin/com/datadog/android/rum/RumAttributes.kt 0.00% <ø> (ø)
...g/android/rum/internal/domain/scope/RumEventExt.kt 91.97% <22.22%> (-3.03%) ⬇️
...roid/rum/internal/domain/scope/RumResourceScope.kt 94.94% <86.67%> (-1.05%) ⬇️

... and 19 files with indirect coverage changes

@louiszawadzki
louiszawadzki marked this pull request as ready for review September 21, 2023 09:11
@louiszawadzki
louiszawadzki requested a review from a team as a code owner September 21, 2023 09:11
0xnm
0xnm previously approved these changes Sep 21, 2023
}

@Test
fun `𝕄 use graphql timings 𝕎 handleEvent`(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fun `𝕄 use graphql timings 𝕎 handleEvent`(
fun `𝕄 use graphql attributes 𝕎 handleEvent`(

@louiszawadzki
louiszawadzki force-pushed the louiszawadzki/RUM-1034/add-cross-platform-graphql-attributes branch from 9b2d212 to 6b0e7ea Compare September 21, 2023 11:39
@louiszawadzki
louiszawadzki merged commit 3a27e65 into develop Sep 22, 2023
@louiszawadzki
louiszawadzki deleted the louiszawadzki/RUM-1034/add-cross-platform-graphql-attributes branch September 22, 2023 10:08
@xgouchet xgouchet added this to the 2.2.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants