Module: Cloudflare::EmailService::Instrumentation

Included in:
Client, SMTPClient
Defined in:
lib/cloudflare/email_service/instrumentation.rb

Overview

Shared send instrumentation for the REST and SMTP clients. Wraps each delivery in a ‘“deliver.cloudflare_email_service”` event published through the configured instrumenter (ActiveSupport::Notifications when present, otherwise a no-op).

The payload carries the transport and recipient counts — never addresses, subject, or body — plus the response status on success. On failure the block raises through, so an ActiveSupport::Notifications instrumenter records the exception on the event.

Constant Summary collapse

EVENT =
"deliver.cloudflare_email_service"