Module: Cloudflare::EmailService::NullInstrumenter

Defined in:
lib/cloudflare/email_service/instrumentation.rb

Overview

Fallback instrumenter used when ActiveSupport::Notifications is absent. Mirrors its ‘instrument(name, payload) { … }` signature so the two are interchangeable, and simply runs the block.

Class Method Summary collapse

Class Method Details

.instrument(_name, payload = {}) {|payload| ... } ⇒ Object

Yields:

  • (payload)


11
12
13
# File 'lib/cloudflare/email_service/instrumentation.rb', line 11

def instrument(_name, payload = {})
  yield payload if block_given?
end