Skip to content

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

Conversation

shellmayr
Copy link
Member

@shellmayr shellmayr commented Jun 12, 2025

  • Register a new project option sentry:dynamic_sampling_minimum_sample_rate with a default value of False.
  • Modify the PUT method in ProjectDetailsEndpoint to allow updates to the dynamicSamplingMinimumSampleRate field and reflect changes in project settings.
  • Update DetailedProjectResponse to include the dynamicSamplingMinimumSampleRate field and ensure it is serialized correctly based on the feature flag and project settings.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 12, 2025
@shellmayr shellmayr marked this pull request as ready for review June 12, 2025 11:01
@shellmayr shellmayr requested review from a team as code owners June 12, 2025 11:01
raise serializers.ValidationError(
"Organization does not have the dynamic sampling minimum sample rate feature enabled."
)
return value
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

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 🙈

@shellmayr shellmayr merged commit e5acdda into master Jun 12, 2025
59 of 60 checks passed
@shellmayr shellmayr deleted the shellmayr/tet-566-provide-backend-to-store-user-per-project-choice-for-minimum-v2 branch June 12, 2025 13:31
vishnupsatish pushed a commit that referenced this pull request Jun 12, 2025
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