Update Sentry's op name (required for sentry-rails 5.6.0+

See https://github.com/getsentry/sentry-ruby/releases/tag/5.6.0
This commit is contained in:
Sebastian Serth
2022-11-17 00:29:46 +01:00
parent 15878f500c
commit e93d6f270d

View File

@ -24,7 +24,7 @@ Sentry.init do |config|
transaction_name = transaction_context[:name] transaction_name = transaction_context[:name]
case op case op
when /request/ when /http/
# for Rails applications, transaction_name would be the request's path (env["PATH_INFO"]) instead of "Controller#action" # for Rails applications, transaction_name would be the request's path (env["PATH_INFO"]) instead of "Controller#action"
case transaction_name case transaction_name
when '/', '/ping' when '/', '/ping'