Merge pull request #3245 from AndrewKvalheim/sentry_traces_sample_rate

Allow runtime configuration of Sentry tracing sample rate
This commit is contained in:
Henne Vogelsang 2023-06-21 14:46:10 +02:00 committed by GitHub
commit 1a4c813854
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ Sentry.init do |config|
# To activate performance monitoring, set one of these options.
# We recommend adjusting the value in production:
config.traces_sample_rate = 0.5
config.traces_sample_rate = ENV.fetch('OSEM_SENTRY_TRACES_SAMPLE_RATE', '0.5').to_f
# or
# config.traces_sampler = lambda do |context|
# true