-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(sampling): Update to the latest sampling config version #60078
Conversation
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we should not forget to change the logic in admin that now fetches sampling
instead of dynamicSampling
from the project config.
@iambriccardo 👍 That's in https://github.com/getsentry/getsentry/pull/12096 Regarding the combined frontend changes: This is removing entirely dead code, so the change is safe. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #60078 +/- ##
==========================================
- Coverage 81.08% 81.01% -0.08%
==========================================
Files 5186 5188 +2
Lines 227817 228503 +686
Branches 38223 38362 +139
==========================================
+ Hits 184728 185119 +391
- Misses 37461 37755 +294
- Partials 5628 5629 +1
|
There's been unrelated changes in librelay that changed the behavior of renormalization, now breaking tests. We're looking into this. |
* master: (147 commits) fix(metrics): Refine text contents for investigation rule notification (#60590) ref(profiling): remove old call tree table (#60052) feat(ddm): spans use case (#60587) ref(ddm): streamline MRI naming and parsing (#60543) fix(security): loose CSP for replays on self-hosted (#60534) fix(alerts): transaction metrics being available (#60584) fix(onboarding-docs): Fix typos (#60571) fix(dashboards): open in DDM with My projects selection (#60540) feat: Added metrics summary sample rates as options (#60506) feat(ddm): code locations (#60539) chore(metrics): mark metrics api as experimental (#60520) feat(metrics): Track code locations for metrics (#60514) Java CRONS wrapper support (#59604) fix(hybridcloud) Fix AttributeError when member is missing (#60546) fix(hybridcloud) Don't assign user to socialauth model (#60556) fix(rca): Do not hard code internal snuba column name (#60559) tests(RCA): Skip failing RCA tests (#60558) fix(starfish): Manually add transaction filter (#60554) fix(browser-starfish): resource pages selector search sometimes inaccurate (#60551) fix(browser-starfish): render blocking all searches for only blocking (#60549) ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the performance score assertions need to be updated to include optional
. Or we update relay with a skip_serializing_if
attribute.
@jjbayer I left a comment in our tracking issue for this: |
Relay has introduced an updated version for dynamic sampling rules. This
PR changes rule generation to emit this new version.
The changes in this version are:
version
field. The version defaults to
1
if missing, which indicates toRelay that a legacy config is used.
rules
. For backwards compatibility,rulesV2
is normalized by Relay.
>
,>=
,<
,<=
) on strings.As part of this update, we're removing
dynamicSamplingRules
from theproject details endpoint response. It has been unused and can instead be
queried using internal endpoints not exposed to the public product.
Requires getsentry/relay#2721
See also https://github.com/getsentry/getsentry/pull/12096