Sha256: 715a6b9f454838d1681f02e2beadc5ce4fad40a1e443a65f8f2a63b2e30b3fca

Contents?: true

Size: 594 Bytes

Versions: 64

Compression:

Stored size: 594 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class ActionCable < Activator
      def can_instrument?
        defined?(::ActionCable::Connection::Base) && defined?(::ActionCable::Channel::Base)
      end

      def instrument
        require 'instana/instrumentation/action_cable'

        ::ActionCable::Connection::Base
          .prepend(Instana::Instrumentation::ActionCableConnection)

        ::ActionCable::Channel::Base
          .prepend(Instana::Instrumentation::ActionCableChannel)

        true
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana/activators/action_cable.rb
instana-1.217.0 lib/instana/activators/action_cable.rb
instana-1.216.0 lib/instana/activators/action_cable.rb
instana-1.215.1 lib/instana/activators/action_cable.rb
instana-1.215.0 lib/instana/activators/action_cable.rb
instana-1.214.4 lib/instana/activators/action_cable.rb
instana-1.214.3 lib/instana/activators/action_cable.rb
instana-1.214.2 lib/instana/activators/action_cable.rb
instana-1.214.1 lib/instana/activators/action_cable.rb
instana-1.214.0 lib/instana/activators/action_cable.rb
instana-1.213.3 lib/instana/activators/action_cable.rb
instana-1.213.2 lib/instana/activators/action_cable.rb
instana-1.213.1 lib/instana/activators/action_cable.rb
instana-1.213.0 lib/instana/activators/action_cable.rb
instana-1.212.0 lib/instana/activators/action_cable.rb
instana-1.211.0 lib/instana/activators/action_cable.rb
instana-1.210.1 lib/instana/activators/action_cable.rb
instana-1.210.0 lib/instana/activators/action_cable.rb
instana-1.209.8 lib/instana/activators/action_cable.rb
instana-1.209.7 lib/instana/activators/action_cable.rb