Sha256: 379f75b9106833e76c6f55195421505be45c735ac666c4ef8d94ebb4808ab85e

Contents?: true

Size: 512 Bytes

Versions: 56

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

module Appsignal
  module Integrations
    module DryMonitorIntegration
      def instrument(event_id, payload = {}, &block)
        Appsignal::Transaction.current.start_event

        super
      ensure
        title, body, body_format = Appsignal::EventFormatter.format("#{event_id}.dry", payload)

        Appsignal::Transaction.current.finish_event(
          title || event_id.to_s,
          title,
          body,
          body_format
        )
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
appsignal-3.10.0-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.10.0 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.3-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.3 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.2-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.2 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.1-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.1 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.0-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.9.0 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.8.1-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.8.1 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.8.0-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.8.0 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.7.6-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.7.6 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.7.2-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.7.2 lib/appsignal/integrations/dry_monitor.rb
appsignal-3.7.1-java lib/appsignal/integrations/dry_monitor.rb
appsignal-3.7.1 lib/appsignal/integrations/dry_monitor.rb