Skip to content

fix(profiling): fix chunked query strategy for flamegraph #97461

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

Merged
merged 3 commits into from
Aug 11, 2025

Conversation

viglia
Copy link
Contributor

@viglia viglia commented Aug 8, 2025

This fixes a bug for flamegraph chunked query strategy where, for chunks associated to a transaction (stored into the ProfilerMeta), we'd only use the latest "window" [t-n, t-i] instead of using the whole time-range scanned [t-n, t].

@viglia viglia requested a review from a team as a code owner August 8, 2025 06:58
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 8, 2025
cursor[bot]

This comment was marked as outdated.

Copy link

codecov bot commented Aug 8, 2025

Codecov Report

❌ Patch coverage is 20.00000% with 8 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/profiles/flamegraph.py 20.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #97461      +/-   ##
==========================================
- Coverage   80.58%   80.58%   -0.01%     
==========================================
  Files        8557     8557              
  Lines      376468   376549      +81     
  Branches    24468    24468              
==========================================
+ Hits       303381   303436      +55     
- Misses      72717    72743      +26     
  Partials      370      370              

@viglia viglia merged commit 5cd6591 into master Aug 11, 2025
64 checks passed
@viglia viglia deleted the viglia/fix/chunked-query-strategy branch August 11, 2025 14:14
andrewshie-sentry pushed a commit that referenced this pull request Aug 12, 2025
This fixes a bug for flamegraph chunked query strategy where, for chunks
associated to a transaction (stored into the `ProfilerMeta`), we'd only
use the latest "window" `[t-n, t-i]` instead of using the whole
time-range scanned `[t-n, t]`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants