Sha256: 245b15bc93412982452c11e251f4e2195f8feb929002eff4e394ecd008ab7747

Contents?: true

Size: 534 Bytes

Versions: 11

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

require "active_support/all"

module Labkit
  module Tracing
    module Rails
      # RailsCommon is a mixin for providing instrumentation
      # functionality for the rails instrumentation classes
      module RailsCommon
        extend ::ActiveSupport::Concern

        class_methods do
          def create_unsubscriber(subscriptions)
            -> { subscriptions.each { |subscriber| ::ActiveSupport::Notifications.unsubscribe(subscriber) } }
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gitlab-labkit-0.13.5 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.13.4 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.13.3 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.13.2 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.13.1 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.13.0 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.12.2 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.12.1 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.12.0 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.11.0 lib/labkit/tracing/rails/rails_common.rb
gitlab-labkit-0.10.1 lib/labkit/tracing/rails/rails_common.rb