Skip to content

Disable Sentry sampling at a zero interval - #116

Merged
codingjoe merged 1 commit into
mainfrom
codingjoe-sentry-disable-sampling
Nov 1, 2026
Merged

codingjoe merged 1 commit into
mainfrom
codingjoe-sentry-disable-sampling

Conversation

@codingjoe

Copy link
Copy Markdown
Owner

Setting --sample-interval 0 currently makes the sampler wait for zero seconds, so it busy-loops queue stats and Sentry gauges. A zero interval now disables sampling.

  • Skip queue and worker sampling when the interval is zero or negative.
  • Document the zero value in the --sample-interval help.
  • Add a focused executor test.

@codingjoe
codingjoe merged commit a4ab621 into main Nov 1, 2026
5 checks passed
@codingjoe
codingjoe deleted the codingjoe-sentry-disable-sampling branch November 1, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant