Sha256: dae6a2715970bc98c07d02ac7c934930162260853ef761126c680ef1eb7f8fbc

Contents?: true

Size: 659 Bytes

Versions: 14

Compression:

Stored size: 659 Bytes

Contents

require 'ddtrace/contrib/racecar/events/batch'
require 'ddtrace/contrib/racecar/events/message'
require 'ddtrace/contrib/racecar/events/consume'

module Datadog
  module Contrib
    module Racecar
      # Defines collection of instrumented Racecar events
      module Events
        ALL = [
          Events::Consume,
          Events::Batch,
          Events::Message
        ].freeze

        module_function

        def all
          self::ALL
        end

        def subscriptions
          all.collect(&:subscriptions).collect(&:to_a).flatten
        end

        def subscribe!
          all.each(&:subscribe!)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ddtrace-0.51.1 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.51.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.50.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.49.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.48.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.47.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.46.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.45.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.44.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.43.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.42.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.41.0 lib/ddtrace/contrib/racecar/events.rb
ls-trace-0.2.0 lib/ddtrace/contrib/racecar/events.rb
ddtrace-0.40.0 lib/ddtrace/contrib/racecar/events.rb