Sha256: 2e19d80d8682c250c437310f5f0b25f06ab4297f78b8ae42b5af3007e09ffa48

Contents?: true

Size: 555 Bytes

Versions: 9

Compression:

Stored size: 555 Bytes

Contents

module Skylight
  class Instrumenter < Core::Instrumenter
    def self.trace_class
      Trace
    end

    def check_install!
      # Warn if there was an error installing Skylight.

      if defined?(Skylight.check_install_errors)
        Skylight.check_install_errors(config)
      end

      if !Skylight.native? && defined?(Skylight.warn_skylight_native_missing)
        Skylight.warn_skylight_native_missing(config)
        return
      end
    end

    def process_sql(sql)
      Skylight.lex_sql(sql, config[:use_old_sql_lexer])
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
skylight-3.0.0.beta lib/skylight/instrumenter.rb
skylight-2.0.2 lib/skylight/instrumenter.rb
skylight-2.0.2.beta.1 lib/skylight/instrumenter.rb
skylight-2.0.2.beta lib/skylight/instrumenter.rb
skylight-2.0.1 lib/skylight/instrumenter.rb
skylight-2.0.0 lib/skylight/instrumenter.rb
skylight-2.0.0.beta3 lib/skylight/instrumenter.rb
skylight-2.0.0.beta2 lib/skylight/instrumenter.rb
skylight-2.0.0.beta1 lib/skylight/instrumenter.rb