mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Allow runtime configuration of Sentry tracing sample rate
This commit is contained in:
parent
bd937534d3
commit
31ffa102a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue