Class: OpenTelemetry::Instrumentation::ActionMailer::Instrumentation
- Inherits:
-
Base
- Object
- Base
- OpenTelemetry::Instrumentation::ActionMailer::Instrumentation
- Defined in:
- lib/opentelemetry/instrumentation/action_mailer/instrumentation.rb
Overview
The Instrumentation class contains logic to detect and install the ActionMailer instrumentation
Installation and configuration of this instrumentation is done within the OpenTelemetry::SDK#configure block, calling use() or use_all().
Configuration keys and options
:disallowed_notification_payload_keys
Specifies an array of keys that should be excluded from the deliver.action_mailer
notification payload as span attributes.
:disallowed_process_payload_keys
Specifies an array of keys that should be excluded from the process.action_mailer
notification payload as span attributes.
:notification_payload_transform
proc
defaultnil
Specifies custom proc used to extract span attributes form the deliver.action_mailer
notification payload. Use this to rename keys, extract nested values, or perform any other custom logic.
:process_payload_transform
proc
defaultnil
Specifies custom proc used to extract span attributes form the process.action_mailer
notification payload. Use this to rename keys, extract nested values, or perform any other custom logic.
:email_address
symbol
default:omit
Specifies whether to include email addresses in the notification payload. Valid values are :omit
and :include
.
Constant Summary collapse
- MINIMUM_VERSION =
Gem::Version.new('6.1.0')
- EMAIL_ATTRIBUTE =
%w[email.to.address email.from.address email.cc.address email.bcc.address].freeze