SIGN IN SIGN UP

feat(options): Add support for `SENTRY_SAMPLE_RATE` environment variable / `sample-rate` property (#5112)

* feat: Add support for SENTRY_SAMPLE_RATE environment variable

Add `sampleRate` to `ExternalOptions` so it can be configured via the
`SENTRY_SAMPLE_RATE` environment variable or `sample-rate` property,
matching the behavior of other sample rate options.

Fixes GH-5091
Co-Authored-By: Claude <noreply@anthropic.com>

* docs: Add changelog entry for SENTRY_SAMPLE_RATE support

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
A
Alexander Dinauer committed
815e0348f1511456e4c377fcf76de0f08177eab8
Parent: b8bd880
Committed by GitHub <noreply@github.com> on 3/4/2026, 8:16:12 AM