lib/elastic_apm/normalizers/action_mailer.rb in elastic-apm-0.7.4 vs lib/elastic_apm/normalizers/action_mailer.rb in elastic-apm-0.8.0
- old
+ new
@@ -6,12 +6,11 @@
# @api private
class ProcessActionNormalizer < Normalizer
register 'process.action_mailer'
TYPE = 'app.mailer.action'.freeze
- def normalize(transaction, _name, payload)
- transaction.name = endpoint(payload)
- [transaction.name, TYPE, nil]
+ def normalize(_transaction, _name, payload)
+ [endpoint(payload), TYPE, nil]
end
private
def endpoint(payload)