Skip to content

RUM-16125: Add name support for the work units in BackPressureExecutorService#submit#3492

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/add-name-to-the-backpressureexecutor-submit
Jun 2, 2026
Merged

RUM-16125: Add name support for the work units in BackPressureExecutorService#submit#3492
0xnm merged 1 commit into
developfrom
nogorodnikov/add-name-to-the-backpressureexecutor-submit

Conversation

@0xnm

@0xnm 0xnm commented Jun 2, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Continuation of #3412.

Work units submitted using ExecutorService.submit are getting wrapped into the future handles (this is what added to the queue), so this PR makes such future handles named as well.

This will bring observability for the tasks submitted to the RUM executor.

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)

@0xnm
0xnm requested review from a team as code owners June 2, 2026 08:05
@datadog-datadog-prod-us1-2

This comment has been minimized.

@0xnm
0xnm force-pushed the nogorodnikov/add-name-to-the-backpressureexecutor-submit branch from a9842bf to 08b828b Compare June 2, 2026 08:18
ambushwork
ambushwork previously approved these changes Jun 2, 2026

@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.

Optional: since now it's working, we can add tests in BackPressureExecutorServiceTest when submitting the task, the queue can be dumped with the name.

@codecov-commenter

codecov-commenter commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.21%. Comparing base (cafc384) to head (209f7f4).

Files with missing lines Patch % Lines
...ore/internal/thread/BackPressureExecutorService.kt 66.67% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3492      +/-   ##
===========================================
+ Coverage    72.18%   72.21%   +0.02%     
===========================================
  Files          964      965       +1     
  Lines        35586    35595       +9     
  Branches      5928     5932       +4     
===========================================
+ Hits         25687    25702      +15     
- Misses        8278     8288      +10     
+ Partials      1621     1605      -16     
Files with missing lines Coverage Δ
...og/android/core/internal/thread/NamedFutureTask.kt 100.00% <100.00%> (ø)
...adog/android/core/internal/utils/ConcurrencyExt.kt 87.30% <ø> (-9.52%) ⬇️
.../android/rum/internal/monitor/DatadogRumMonitor.kt 86.55% <ø> (ø)
...ore/internal/thread/BackPressureExecutorService.kt 45.16% <66.67%> (+0.72%) ⬆️

... and 37 files with indirect coverage changes

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

@kikoveiga

kikoveiga commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

So does this fix RUM-16125? If so, please also remove the stale TODO comments in the code.

@0xnm
0xnm force-pushed the nogorodnikov/add-name-to-the-backpressureexecutor-submit branch from 08b828b to 209f7f4 Compare June 2, 2026 09:01
@0xnm 0xnm changed the title Add name support for the work units in BackPressureExecutorService#submit RUM-16125: Add name support for the work units in BackPressureExecutorService#submit Jun 2, 2026
@0xnm
0xnm requested review from ambushwork and kikoveiga June 2, 2026 09:02
@0xnm
0xnm merged commit 91882c1 into develop Jun 2, 2026
27 checks passed
@0xnm
0xnm deleted the nogorodnikov/add-name-to-the-backpressureexecutor-submit branch June 2, 2026 10:26
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