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

fix(profiler) do not emit profiles when profiler is disabled #2393

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

realFlowControl
Copy link
Collaborator

@realFlowControl realFlowControl commented Nov 28, 2023

Description

A customer contacted us that with upgrading to 0.94.0 they see profiles being send to Datadog, although the profiler is disabled for them and therefore should not send profiles.
The bug is that the new idle phases added in #2343 were not checking if the timeline is enabled.

This PR will add this missing check, as well as a test to ensure that in all prof-correctness cases the profiler does not emit pprof files when profiling is disabled.

SCP-378

Readiness checklist

  • (only for Members) Changelog has been added to the release document.
  • Tests added for this feature/bug.

Reviewer checklist

  • Appropriate labels assigned.
  • Milestone is set.
  • Changelog has been added to the release document. For community contributors the reviewer is in charge of this task.

@realFlowControl realFlowControl added the profiling Relates to the Continuous Profiler label Nov 28, 2023
@realFlowControl realFlowControl added this to the 0.94.1 milestone Nov 28, 2023
@realFlowControl realFlowControl self-assigned this Nov 28, 2023
@realFlowControl realFlowControl requested a review from a team as a code owner November 28, 2023 10:04
@realFlowControl realFlowControl marked this pull request as draft November 28, 2023 10:04
@realFlowControl realFlowControl marked this pull request as ready for review November 28, 2023 10:14
@realFlowControl realFlowControl requested a review from a team as a code owner November 28, 2023 10:14
@pr-commenter
Copy link

pr-commenter bot commented Nov 28, 2023

Benchmarks

Benchmark execution time: 2023-11-28 11:02:57

Comparing candidate commit d65a71b in PR branch florian/fix-timeline-emitting-profiles with baseline commit 3b04614 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 18 metrics, 3 unstable metrics.

@realFlowControl realFlowControl force-pushed the florian/fix-timeline-emitting-profiles branch from 68c3dc1 to 87d9d12 Compare November 28, 2023 10:15
@realFlowControl realFlowControl force-pushed the florian/fix-timeline-emitting-profiles branch from 87d9d12 to d65a71b Compare November 28, 2023 10:55
@realFlowControl realFlowControl merged commit 23ed6b2 into master Nov 28, 2023
547 checks passed
@realFlowControl realFlowControl deleted the florian/fix-timeline-emitting-profiles branch November 28, 2023 16:05
realFlowControl added a commit that referenced this pull request Nov 28, 2023
* add test to ensure the profiler does not emit profiles when inactive

* do not emit profiles if the feature is inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Relates to the Continuous Profiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants