Sha256: dcfd5e8d54bb58970cc39e6fda3209d7afefbded3258e1ca2f883b7a351a1922

Contents?: true

Size: 363 Bytes

Versions: 3

Compression:

Stored size: 363 Bytes

Contents

# (c) Copyright IBM Corp. 2024

module Instana
  module Activators
    class Sequel < Activator
      def can_instrument?
        defined?(::Sequel::Database)
      end

      def instrument
        require 'instana/instrumentation/sequel'

        ::Sequel::Database
          .prepend(Instana::Instrumentation::Sequel)

        true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana/activators/sequel.rb
instana-1.217.0 lib/instana/activators/sequel.rb
instana-1.216.0 lib/instana/activators/sequel.rb