chore(sentry): increase trace sample rate for PATCH/POST requests

This commit is contained in:
Colin Darie 2023-05-24 17:51:46 +02:00
parent 2f2df08285
commit 9c71ddd257

View file

@ -42,7 +42,11 @@ Sentry.init do |config|
# Don't trace on all attempts
[0, 2, 5, 10, 20, max_attempts].include?(attempts)
else # rails requests
0.001
if sampling_context.dig(:env, "REQUEST_METHOD") == "GET"
0.001
else
0.01
end
end
end