Skip to content

RUM-12635: RUM support for Cronet#3029

Merged
satween merged 4 commits into
feature/cronetfrom
tvaleev/feature/RUM-12635-wrapper-support
Dec 17, 2025
Merged

RUM-12635: RUM support for Cronet#3029
satween merged 4 commits into
feature/cronetfrom
tvaleev/feature/RUM-12635-wrapper-support

Conversation

@satween

@satween satween commented Nov 27, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

This is a draft PR. work in progress

  • Adds instrumentation for the Crontet library.
  • Currently, only RUM Resources are supported (see the RFC in the JIRA ticket).
  • The common code base aimed to be shared between OkHttp and Cronet has been moved into RumResourceInstrumentation, but neither DatadogInterceptor nor TracingInterceptor are using it.
  • The instrumentation is added as a wrapper on top of the Cronet API that allows customer to use several instrumentation libraries at the same time.

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)

@satween satween changed the title RUM-12635: RUM support for Cronet [WIP] RUM-12635: RUM support for Cronet Nov 27, 2025
@satween
satween force-pushed the tvaleev/feature/RUM-12635-wrapper-support branch from 0a842f7 to ec8f689 Compare November 27, 2025 13:51
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 27, 2025

Copy link
Copy Markdown

🎯 Code Coverage
Patch Coverage: 70.07%
Overall Coverage: 71.36% (+0.01%)

View detailed report

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: c524465 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@codecov-commenter

codecov-commenter commented Nov 27, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 68.88889% with 126 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.15%. Comparing base (0c156cc) to head (c524465).
⚠️ Report is 64 commits behind head on feature/cronet.

Files with missing lines Patch % Lines
...oid/rum/internal/net/RumResourceInstrumentation.kt 0.00% 80 Missing ⚠️
.../com/datadog/android/cronet/DatadogCronetEngine.kt 88.17% 11 Missing ⚠️
.../com/datadog/android/core/internal/net/HttpSpec.kt 0.00% 8 Missing ⚠️
...g/android/cronet/internal/CronetHttpRequestInfo.kt 73.33% 5 Missing and 3 partials ⚠️
...net/internal/DatadogRequestFinishedInfoListener.kt 87.27% 3 Missing and 4 partials ⚠️
.../android/okhttp/internal/OkHttpHttpResponseInfo.kt 90.62% 0 Missing and 3 partials ⚠️
...mResourceAttributesProviderCompatibilityAdapter.kt 81.25% 0 Missing and 3 partials ⚠️
.../android/cronet/internal/CronetHttpResponseInfo.kt 81.82% 0 Missing and 2 partials ⚠️
...ndroid/cronet/internal/DatadogUrlRequestBuilder.kt 95.83% 1 Missing and 1 partial ⚠️
...api/instrumentation/network/ExtendedRequestInfo.kt 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@                Coverage Diff                 @@
##           feature/cronet    #3029      +/-   ##
==================================================
- Coverage           71.22%   71.15%   -0.07%     
==================================================
  Files                 859      869      +10     
  Lines               31457    31844     +387     
  Branches             5306     5374      +68     
==================================================
+ Hits                22405    22658     +253     
- Misses               7544     7668     +124     
- Partials             1508     1518      +10     
Files with missing lines Coverage Δ
...tadog/android/cronet/internal/DatadogUrlRequest.kt 100.00% <100.00%> (ø)
...com/datadog/android/okhttp/DatadogEventListener.kt 96.15% <ø> (ø)
...n/com/datadog/android/okhttp/DatadogInterceptor.kt 74.59% <100.00%> (+0.57%) ⬆️
...g/android/okhttp/internal/OkHttpHttpRequestInfo.kt 100.00% <100.00%> (ø)
...api/instrumentation/network/ExtendedRequestInfo.kt 0.00% <0.00%> (ø)
...tadog/android/rum/RumResourceAttributesProvider.kt 0.00% <0.00%> (ø)
.../android/cronet/internal/CronetHttpResponseInfo.kt 81.82% <81.82%> (ø)
...ndroid/cronet/internal/DatadogUrlRequestBuilder.kt 95.83% <95.83%> (ø)
.../android/okhttp/internal/OkHttpHttpResponseInfo.kt 90.62% <90.62%> (ø)
...mResourceAttributesProviderCompatibilityAdapter.kt 81.25% <81.25%> (ø)
... and 5 more

... and 41 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@satween
satween force-pushed the tvaleev/feature/RUM-12635-wrapper-support branch from ec8f689 to a111d25 Compare November 28, 2025 10:09
@satween satween changed the title [WIP] RUM-12635: RUM support for Cronet RUM-12635: RUM support for Cronet Nov 28, 2025
@satween
satween marked this pull request as ready for review November 28, 2025 10:10
@satween
satween requested review from a team as code owners November 28, 2025 10:10

@ambushwork ambushwork left a comment

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.

Just finish the review of the half, will continue on next week.

@0xnm 0xnm left a comment

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.

I went only through the production files so far, didn't cover tests

Comment thread dd-sdk-android-core/api/apiSurface Outdated
Comment thread dd-sdk-android-core/api/apiSurface Outdated
@satween
satween force-pushed the tvaleev/feature/RUM-12635-wrapper-support branch from aa76518 to ecb5350 Compare December 12, 2025 15:12
@satween
satween requested a review from 0xnm December 12, 2025 15:14
ambushwork
ambushwork previously approved these changes Dec 15, 2025
Comment thread detekt_custom_safe_calls.yml
@satween
satween force-pushed the tvaleev/feature/RUM-12635-wrapper-support branch from ecb5350 to c3fd6ee Compare December 15, 2025 16:34
@satween
satween requested a review from ambushwork December 15, 2025 16:34
ambushwork
ambushwork previously approved these changes Dec 15, 2025

@0xnm 0xnm left a comment

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.

🚀

I managed to review production files, the only blocking comments are about public API, the rest are minor/nits.

I will try to cover tests asap later.

Comment thread dd-sdk-android-core/api/apiSurface Outdated

@0xnm 0xnm left a comment

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.

I reviewed the remaining files.

@satween
satween requested a review from a team as a code owner December 16, 2025 16:19
@satween
satween force-pushed the tvaleev/feature/RUM-12635-wrapper-support branch from 35628c4 to d479677 Compare December 16, 2025 16:21
@satween
satween requested a review from 0xnm December 16, 2025 16:22
drichards-87
drichards-87 previously approved these changes Dec 16, 2025

@drichards-87 drichards-87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left a couple of minor suggestions from Docs and approved the PR.

Comment thread integrations/dd-sdk-android-cronet/README.md Outdated
Comment thread integrations/dd-sdk-android-cronet/README.md Outdated
0xnm
0xnm previously approved these changes Dec 17, 2025

@0xnm 0xnm left a comment

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.

🚀

Comment thread integrations/dd-sdk-android-cronet/README.md
@satween
satween dismissed stale reviews from 0xnm and drichards-87 via c7b786c December 17, 2025 10:52
@satween
satween force-pushed the tvaleev/feature/RUM-12635-wrapper-support branch from d479677 to c7b786c Compare December 17, 2025 10:52
0xnm
0xnm previously approved these changes Dec 17, 2025
Comment thread integrations/dd-sdk-android-cronet/README.md Outdated
@satween
satween force-pushed the tvaleev/feature/RUM-12635-wrapper-support branch from c7b786c to c524465 Compare December 17, 2025 11:06
@satween
satween merged commit 1cb6abb into feature/cronet Dec 17, 2025
26 checks passed
@satween
satween deleted the tvaleev/feature/RUM-12635-wrapper-support branch December 17, 2025 12:10
@0xnm
0xnm restored the tvaleev/feature/RUM-12635-wrapper-support branch March 26, 2026 10:41
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.

6 participants