chore(sentry): increase trace sample rate for PATCH/POST requests
This commit is contained in:
parent
2f2df08285
commit
9c71ddd257
1 changed files with 5 additions and 1 deletions
|
@ -42,7 +42,11 @@ Sentry.init do |config|
|
||||||
# Don't trace on all attempts
|
# Don't trace on all attempts
|
||||||
[0, 2, 5, 10, 20, max_attempts].include?(attempts)
|
[0, 2, 5, 10, 20, max_attempts].include?(attempts)
|
||||||
else # rails requests
|
else # rails requests
|
||||||
0.001
|
if sampling_context.dig(:env, "REQUEST_METHOD") == "GET"
|
||||||
|
0.001
|
||||||
|
else
|
||||||
|
0.01
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue