Increase sample rate for Sentry and introduce ENV variable

This commit is contained in:
Sebastian Serth
2023-02-09 19:32:03 +01:00
parent 379edbc12c
commit 750c59ca6a
2 changed files with 3 additions and 2 deletions

View File

@ -30,10 +30,10 @@ Sentry.init do |config|
when '/', '/ping'
0.00 # ignore health check
else
0.01
ENV.fetch('SENTRY_TRACE_SAMPLE_RATE', 1.0).to_f
end
else
0.0 # ignore all other transactions
ENV.fetch('SENTRY_TRACE_SAMPLE_RATE', 1.0).to_f # sample all other transactions
end
end
end