Sha256: 4751ae47b221c25da4f6ca89b78a8d3c62eb36ea56cfa5e48c6100510caf540e

Contents?: true

Size: 641 Bytes

Versions: 40

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

module Karafka
  # @note Since we can only have one statistics callbacks manager and one error callbacks manager
  # we use WaterDrops one that is already configured.
  module Instrumentation
    class << self
      # Returns a manager for statistics callbacks
      # @return [::WaterDrop::CallbacksManager]
      def statistics_callbacks
        ::WaterDrop::Instrumentation.statistics_callbacks
      end

      # Returns a manager for error callbacks
      # @return [::WaterDrop::CallbacksManager]
      def error_callbacks
        ::WaterDrop::Instrumentation.error_callbacks
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
karafka-2.0.22 lib/karafka/instrumentation.rb
karafka-2.0.21 lib/karafka/instrumentation.rb
karafka-2.0.20 lib/karafka/instrumentation.rb
karafka-2.0.19 lib/karafka/instrumentation.rb
karafka-2.0.18 lib/karafka/instrumentation.rb
karafka-2.0.17 lib/karafka/instrumentation.rb
karafka-2.0.16 lib/karafka/instrumentation.rb
karafka-2.0.15 lib/karafka/instrumentation.rb
karafka-2.0.14 lib/karafka/instrumentation.rb
karafka-2.0.13 lib/karafka/instrumentation.rb
karafka-2.0.12 lib/karafka/instrumentation.rb
karafka-2.0.11 lib/karafka/instrumentation.rb
karafka-2.0.10 lib/karafka/instrumentation.rb
karafka-2.0.9 lib/karafka/instrumentation.rb
karafka-2.0.8 lib/karafka/instrumentation.rb
karafka-2.0.7 lib/karafka/instrumentation.rb
karafka-2.0.6 lib/karafka/instrumentation.rb
karafka-2.0.5 lib/karafka/instrumentation.rb
karafka-2.0.4 lib/karafka/instrumentation.rb
karafka-2.0.3 lib/karafka/instrumentation.rb