Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

xgouchet
Copy link
Member

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
Copy link

codecov-commenter commented Dec 12, 2023

Codecov Report

Merging #1760 (9b4acbe) into develop (2f894e9) will increase coverage by 0.04%.
The diff coverage is 75.00%.

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

@@ -77,6 +78,7 @@ internal class RumApplicationScope(
syntheticsTestId = event.testId,
syntheticsResultId = event.resultId
)
Log.i(RumScope.SYNTHETICS_LOGCAT_TAG, "_dd.application.id=${rumContext.applicationId}")
Copy link
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
Member 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
23 checks passed
@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