Skip to content

RUM-15190: Extend app launch profiling duration for continuous merge#3277

Open
ambushwork wants to merge 1 commit intofeature/continuous-profilingfrom
yl/profiling/RUM-15190-extend-launch-duration
Open

RUM-15190: Extend app launch profiling duration for continuous merge#3277
ambushwork wants to merge 1 commit intofeature/continuous-profilingfrom
yl/profiling/RUM-15190-extend-launch-duration

Conversation

@ambushwork
Copy link
Member

@ambushwork ambushwork commented Mar 20, 2026

What does this PR do?

This PR changes the max duration of app launch profiling request from 10s -> (ttid, 1 min] in order to be able to extend as the continuous profiling, at the same time a timer of 10s is introduced to prevent the application launch profiling to go beyond 10 seconds if continuous profiling is not sampled in.

Motivation

RUM-15190

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)

@ambushwork ambushwork force-pushed the yl/profiling/RUM-15190-extend-launch-duration branch from 5726ae9 to 852ee36 Compare March 20, 2026 15:53
@ambushwork ambushwork force-pushed the yl/profiling/RUM-15190-extend-launch-duration branch from 852ee36 to 0c9ffdc Compare March 20, 2026 16:24
@ambushwork ambushwork marked this pull request as ready for review March 20, 2026 16:50
@ambushwork ambushwork requested review from a team as code owners March 20, 2026 16:50
@ambushwork
Copy link
Member Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0c9ffdc8fc

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

runnable = {
stopSignal?.let { signal ->
if (profilingStartReason == ProfilingStartReason.APPLICATION_LAUNCH &&
!signal.isCanceled && continuousSampler.sample(Unit)

Choose a reason for hiding this comment

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

P1 Badge Cancel app-launch profiling only when continuous sampling is off

The timer condition is inverted: signal.cancel() runs when continuousSampler.sample(Unit) is true, which means sessions sampled into continuous profiling are stopped at 10s, while non-sampled sessions keep running up to the 60s request duration. This is the opposite of the stated behavior (“stop at 10s if continuous profiling is not sampled”) and will skew runtime/overhead and break the intended app-launch→continuous merge behavior, especially with default non-100% continuous sample rates.

Useful? React with 👍 / 👎.

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.

1 participant