Module: Datadog::Contrib::ActionMailer::Events::Process
- Includes:
- Datadog::Contrib::ActionMailer::Event
- Defined in:
- lib/ddtrace/contrib/action_mailer/events/process.rb
Overview
Defines instrumentation for process.action_mailer event
Constant Summary collapse
- EVENT_NAME =
'process.action_mailer'.freeze
Class Method Summary collapse
- .event_name ⇒ Object
- .process(span, event, _id, payload) ⇒ Object
- .span_name ⇒ Object
- .span_type ⇒ Object
Methods included from Datadog::Contrib::ActionMailer::Event
Class Method Details
.event_name ⇒ Object
17 18 19 |
# File 'lib/ddtrace/contrib/action_mailer/events/process.rb', line 17 def event_name self::EVENT_NAME end |
.process(span, event, _id, payload) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/ddtrace/contrib/action_mailer/events/process.rb', line 30 def process(span, event, _id, payload) super span.span_type = span_type span.set_tag(Ext::TAG_ACTION, payload[:action]) span.set_tag(Ext::TAG_MAILER, payload[:mailer]) end |
.span_name ⇒ Object
21 22 23 |
# File 'lib/ddtrace/contrib/action_mailer/events/process.rb', line 21 def span_name Ext::SPAN_PROCESS end |