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