Skip to content

Commit

Permalink
feat(dynamic-sampling): adding test for organization option targetSam…
Browse files Browse the repository at this point in the history
…pleRate
  • Loading branch information
constantinius committed Oct 17, 2024
1 parent 4b06a83 commit 57adfbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/sentry/api/endpoints/test_organization_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ def test_various_options(self, mock_get_repositories):
"metricsActivatePercentiles": False,
"metricsActivateLastForGauges": True,
"uptimeAutodetection": False,
"targetSampleRate": 0.1,
}

# needed to set require2FA
Expand Down Expand Up @@ -493,6 +494,7 @@ def test_various_options(self, mock_get_repositories):
assert options.get("sentry:metrics_activate_percentiles") is False
assert options.get("sentry:metrics_activate_last_for_gauges") is True
assert options.get("sentry:uptime_autodetection") is False
assert options.get("sentry:target_sample_rate") == 0.1

# log created
with assume_test_silo_mode_of(AuditLogEntry):
Expand Down

0 comments on commit 57adfbe

Please sign in to comment.