-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(dynamic-sampling): add project option for dynamic sampling minimum sample rate #93411
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
feat(dynamic-sampling): add project option for dynamic sampling minimum sample rate #93411
Conversation
raise serializers.ValidationError( | ||
"Organization does not have the dynamic sampling minimum sample rate feature enabled." | ||
) | ||
return value |
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.
Do we also want to perform a validation that the value is in allowed range?
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.
Ah yeah, forgot to push the test for that - this is already done by virtue of that field being a BooleanField
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.
Ahh yeah, my bad, sorry, for some reason i though this is a float field 🙈
sentry:dynamic_sampling_minimum_sample_rate
with a default value ofFalse
.PUT
method inProjectDetailsEndpoint
to allow updates to thedynamicSamplingMinimumSampleRate
field and reflect changes in project settings.DetailedProjectResponse
to include thedynamicSamplingMinimumSampleRate
field and ensure it is serialized correctly based on the feature flag and project settings.