Skip to content

RUM-3900: Remove RUM feature check in AndroidTracer builder#2539

Merged
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/rum-3900/remove-rum-feature-check
Mar 10, 2025
Merged

RUM-3900: Remove RUM feature check in AndroidTracer builder#2539
aleksandr-gringauz merged 1 commit into
developfrom
aleksandr-gringauz/rum-3900/remove-rum-feature-check

Conversation

@aleksandr-gringauz

@aleksandr-gringauz aleksandr-gringauz commented Mar 10, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

The setBundleWithRumEnabled feature of AndroidTracer works fine even if Rum feature is initialized after AndroidTracer.Builder.build() is called. So we remove the warning log and don't set bundleWithRumEnabled to false if Rum feature is not initialized when build() is called.

demo [internal]:

Here is the link to the session where Rum.enable(rumConfig) was called right after AndroidTracer.Builder().build(). I opened "Opentracing traces" screen and tapped "start" on an async operation.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

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)

@aleksandr-gringauz
aleksandr-gringauz force-pushed the aleksandr-gringauz/rum-3900/remove-rum-feature-check branch from 934fefc to 9106ea5 Compare March 10, 2025 13:19
.build()
)

val rumConfig = createRumConfiguration()

@aleksandr-gringauz aleksandr-gringauz Mar 10, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved it here in order to test that initializing Rum after AndroidTracer actually works. Also checked that session replay works.

@codecov-commenter

codecov-commenter commented Mar 10, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.04%. Comparing base (f37baf1) to head (9106ea5).
Report is 8 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2539      +/-   ##
===========================================
+ Coverage    70.04%   70.04%   +0.01%     
===========================================
  Files          797      797              
  Lines        29990    30025      +35     
  Branches      5016     5027      +11     
===========================================
+ Hits         21004    21031      +27     
- Misses        7595     7596       +1     
- Partials      1391     1398       +7     
Files with missing lines Coverage Δ
.../kotlin/com/datadog/android/trace/AndroidTracer.kt 95.06% <ø> (-0.98%) ⬇️

... and 36 files with indirect coverage changes

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

@aleksandr-gringauz
aleksandr-gringauz marked this pull request as ready for review March 10, 2025 13:51
@aleksandr-gringauz
aleksandr-gringauz requested review from a team as code owners March 10, 2025 13:51
@aleksandr-gringauz
aleksandr-gringauz merged commit 4bcd7dd into develop Mar 10, 2025
@aleksandr-gringauz
aleksandr-gringauz deleted the aleksandr-gringauz/rum-3900/remove-rum-feature-check branch March 10, 2025 14:48
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