Skip to content

fix(spans-migration): Round off percentiles instead of dropping the field#95714

Merged
nikkikapadia merged 2 commits into
masterfrom
nikki/fix/round-percentiles-instead-of-dropping
Jul 18, 2025
Merged

fix(spans-migration): Round off percentiles instead of dropping the field#95714
nikkikapadia merged 2 commits into
masterfrom
nikki/fix/round-percentiles-instead-of-dropping

Conversation

@nikkikapadia

Copy link
Copy Markdown
Member

Instead of dropping all percentile fields that don't align with supported fields, I'm rounding them off to the closest supported field. For example, percentile(transaction.duration,0.94) would map to p95(span.duration).
intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 16, 2025
@nikkikapadia nikkikapadia marked this pull request as ready for review July 17, 2025 13:51
@nikkikapadia nikkikapadia requested a review from a team as a code owner July 17, 2025 13:51
cursor[bot]

This comment was marked as outdated.

@codecov

codecov Bot commented Jul 17, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/discover/translation/mep_to_eap.py 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #95714      +/-   ##
==========================================
+ Coverage   82.56%   83.93%   +1.37%     
==========================================
  Files       10563    10572       +9     
  Lines      608794   610197    +1403     
  Branches    23913    23913              
==========================================
+ Hits       502623   512199    +9576     
+ Misses     105784    97611    -8173     
  Partials      387      387              

@nikkikapadia nikkikapadia merged commit 34dd01c into master Jul 18, 2025
65 checks passed
@nikkikapadia nikkikapadia deleted the nikki/fix/round-percentiles-instead-of-dropping branch July 18, 2025 15:14
andrewshie-sentry pushed a commit that referenced this pull request Jul 21, 2025
…ield (#95714)

Instead of dropping all percentile fields that don't align with
supported fields, I'm rounding them off to the closest supported field.
For example, `percentile(transaction.duration,0.94)` would map to
`p95(span.duration)`.
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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