Sha256: aba1fa6750db980e369fa9c29d7642ff60c68e421462f4309e9d51caf922f4b1

Contents?: true

Size: 534 Bytes

Versions: 14

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

module PlainApm
  module Hooks
    class Manual < ActiveSupportSubscriber
      NOTIFICATION_PATTERN = /\A[^!]\w+\.manual_plain_apm\Z/.freeze

      private

      def notification_pattern
        NOTIFICATION_PATTERN
      end

      def payload(event)
        name, base = attributes_from_notification(event)

        base.merge({
          "source" => "user",
          "name" => "manual",
          "payload_name" => name,
          "payload" => event.payload
        })
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
plain_apm-0.9.2 lib/plain_apm/hooks/manual.rb
plain_apm-0.9.1 lib/plain_apm/hooks/manual.rb
plain_apm-0.9.0 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.8 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.7 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.6 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.5 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.4 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.3 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.2 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.1 lib/plain_apm/hooks/manual.rb
plain_apm-0.8.0 lib/plain_apm/hooks/manual.rb
plain_apm-0.7.1 lib/plain_apm/hooks/manual.rb
plain_apm-0.7.0 lib/plain_apm/hooks/manual.rb