Skip to content

RUM-2441 Print RUM app, session and view ID in LogCat#1760

Merged
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-2441/log_rum_info_for_synthetics
Dec 13, 2023
Merged

RUM-2441 Print RUM app, session and view ID in LogCat#1760
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-2441/log_rum_info_for_synthetics

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

Print the RUM app, session and view ID in LogCat

Motivation

Let the Synthetics runner know what those ids are to create a link from a test run to the linked RUM events

@xgouchet
xgouchet requested review from a team as code owners December 11, 2023 16:45
@xgouchet
xgouchet force-pushed the xgouchet/RUM-2441/log_rum_info_for_synthetics branch from e9a2bcf to 9b4acbe Compare December 12, 2023 09:09
@codecov-commenter

codecov-commenter commented Dec 12, 2023

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.56%. Comparing base (2f894e9) to head (9b4acbe).
⚠️ Report is 2321 commits behind head on develop.

Files with missing lines Patch % Lines
.../android/rum/internal/domain/scope/RumViewScope.kt 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1760      +/-   ##
===========================================
+ Coverage    83.52%   83.56%   +0.04%     
===========================================
  Files          468      469       +1     
  Lines        16386    16391       +5     
  Branches      2445     2447       +2     
===========================================
+ Hits         13685    13696      +11     
+ Misses        2037     2031       -6     
  Partials       664      664              
Files with missing lines Coverage Δ
...d/rum/internal/domain/scope/RumApplicationScope.kt 89.00% <100.00%> (+0.11%) ⬆️
...adog/android/rum/internal/domain/scope/RumScope.kt 100.00% <100.00%> (ø)
...droid/rum/internal/domain/scope/RumSessionScope.kt 96.30% <100.00%> (+0.07%) ⬆️
.../android/rum/internal/domain/scope/RumViewScope.kt 94.25% <50.00%> (-0.12%) ⬇️

... and 20 files with indirect coverage changes

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

syntheticsTestId = event.testId,
syntheticsResultId = event.resultId
)
Log.i(RumScope.SYNTHETICS_LOGCAT_TAG, "_dd.application.id=${rumContext.applicationId}")

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.

Is this safe to expose it in the Logcat ? The session Id and view Id is something we generated but the applicationId is the actual RUM application ID.

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.

It's only exposed when being ran via Synthetics.
Also the RUM Application ID is an identifier, not a token or a key. Just having the App id gives no permission by itself

@xgouchet
xgouchet requested a review from mariusc83 December 12, 2023 16:03
@xgouchet
xgouchet merged commit b628685 into develop Dec 13, 2023
@xgouchet
xgouchet deleted the xgouchet/RUM-2441/log_rum_info_for_synthetics branch December 13, 2023 14:18
@xgouchet xgouchet added this to the 2.4.0 milestone Feb 19, 2024
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.

5 participants