Skip to content

RUM-9509: Trace scenario for android benchmark app#2637

Merged
aleksandr-gringauz merged 2 commits into
developfrom
aleksandr-gringauz/RUM-9509/traces-benchmark-scenario
May 9, 2025
Merged

RUM-9509: Trace scenario for android benchmark app#2637
aleksandr-gringauz merged 2 commits into
developfrom
aleksandr-gringauz/RUM-9509/traces-benchmark-scenario

Conversation

@aleksandr-gringauz

@aleksandr-gringauz aleksandr-gringauz commented May 8, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?

  1. Implemented Traces scenario for Android Benchmarking app that is described here. demo: link

  2. created a synthetics test described here. Link. I checked that is works for my local build.

  3. One of the traces from the synthetic test link.

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-9509/traces-benchmark-scenario branch from 2b780f6 to 62d43d1 Compare May 8, 2025 13:25
@codecov-commenter

codecov-commenter commented May 8, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.04%. Comparing base (a39c5da) to head (4164398).
Report is 15 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2637      +/-   ##
===========================================
- Coverage    70.05%   70.04%   -0.01%     
===========================================
  Files          820      820              
  Lines        30568    30591      +23     
  Branches      5132     5136       +4     
===========================================
+ Hits         21413    21427      +14     
  Misses        7726     7726              
- Partials      1429     1438       +9     

see 39 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 May 9, 2025 06:35
@aleksandr-gringauz
aleksandr-gringauz requested review from a team as code owners May 9, 2025 06:35
ambushwork
ambushwork previously approved these changes May 9, 2025
xgouchet
xgouchet previously approved these changes May 9, 2025
@aleksandr-gringauz
aleksandr-gringauz dismissed stale reviews from xgouchet and ambushwork via 4164398 May 9, 2025 07:18
Comment on lines +30 to +36
val isTracingEnabled = config.run == SyntheticsRun.Instrumented &&
config.scenario == SyntheticsScenario.Trace

val tracerProvider = when (isTracingEnabled) {
true -> OtelTracerProvider.Builder(sdkCore).build()
false -> TracerProvider.noop()
}

@aleksandr-gringauz aleksandr-gringauz May 9, 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.

Important. This was missing in my initial implementation. We need to provide a TracerProvider.noop() when we are in baseline run. Because otherwise it creates a working tracer that does some work under the hood. In the end the traces were not sent to the backend because Trace.enable wasn't called, but it was still doing some non-trivial work.

@aleksandr-gringauz
aleksandr-gringauz merged commit 4df0cde into develop May 9, 2025
@aleksandr-gringauz
aleksandr-gringauz deleted the aleksandr-gringauz/RUM-9509/traces-benchmark-scenario branch May 9, 2025 12:27
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