Sha256: 10702c478c48ae234e44b15f4faa3d89522ff12289e7cfea19468be4cabdcc98

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

$: << File.dirname(__FILE__) + '/../../lib'
require 'xray/dtrace/tracer'

class Service
  include XRay::DTrace::Tracer
  
  def process
    puts "Processing new request"
    firing "my-service", "a sql query" do
      sleep 2
    end
  end
  
end

loop do
  Service.new.process
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
XRay-1.0 test/functional/tracer_script.rb
XRay-1.0.1 test/functional/tracer_script.rb
XRay-1.0.3 test/functional/tracer_script.rb
xray-1.1 test/functional/tracer_script.rb