sentry-ruby icon indicating copy to clipboard operation
sentry-ruby copied to clipboard

Sample rate override ignored when set to 0

Open azaslavsky opened this issue 1 year ago • 2 comments

Issue Description

At https://github.com/search?q=repo%3Agetsentry%2Fsentry-ruby+valid_sample_rate&type=code, setting sample_rate to 0 does not work.

Reproduction Steps

This was reported to us by a downstream user of the SDK.

Expected Behavior

One should be able to set the sample rate to 0.

Actual Behavior

The sample rate override is ignored.

Ruby Version

--

SDK Version

--

Integration and Its Version

No response

Sentry Config

No response

azaslavsky avatar Jun 12 '24 20:06 azaslavsky