Module: Oboe
- Includes:
- Oboe_metal
- Defined in:
- lib/oboe/api.rb,
lib/oboe_metal.rb,
lib/oboe/config.rb,
lib/oboe/loading.rb,
lib/oboe/version.rb,
lib/oboe/api/util.rb,
lib/oboe/api/logging.rb,
lib/oboe/api/tracing.rb,
lib/oboe/api/memcache.rb,
lib/oboe/api/layerinit.rb,
lib/oboe/frameworks/rails/rails.rb,
lib/oboe/frameworks/rails/rails.rb,
lib/oboe/frameworks/rails/inst/rack.rb,
lib/oboe/frameworks/rails/inst/dalli.rb,
lib/oboe/frameworks/rails/inst/mongo.rb,
lib/oboe/frameworks/rails/inst/active_record.rb,
lib/oboe/frameworks/rails/inst/action_controller.rb
Overview
Copyright © 2012 by Tracelytics, Inc. All rights reserved.
Defined Under Namespace
Modules: API, Inst, Loading, Rails, Util, Version
Classes: Middleware, Railtie
Constant Summary
collapse
- Config =
TODO: Ensure that the :tracing_mode is set to “always”, “through”, or “never”
{
:tracing_mode => "through",
:reporter_host => "127.0.0.1",
:sample_rate => 3e5
}
Class Method Summary
collapse
Class Method Details
.always? ⇒ Boolean
114
115
116
|
# File 'lib/oboe_metal.rb', line 114
def self.always?
Oboe::Config[:tracing_mode] == "always"
end
|
.continue? ⇒ Boolean
134
135
136
|
# File 'lib/oboe_metal.rb', line 134
def self.continue?
Oboe::Context.isValid and not Oboe.never?
end
|
.log(layer, label, options = {}) ⇒ Object
138
139
140
|
# File 'lib/oboe_metal.rb', line 138
def self.log(layer, label, options = {})
Context.log(layer, label, options = options)
end
|
.never? ⇒ Boolean
122
123
124
|
# File 'lib/oboe_metal.rb', line 122
def self.never?
Oboe::Config[:tracing_mode] == "never"
end
|
.now? ⇒ Boolean
126
127
128
|
# File 'lib/oboe_metal.rb', line 126
def self.now?
Oboe::Context.isValid and not Oboe.never?
end
|
.passthrough? ⇒ Boolean
110
111
112
|
# File 'lib/oboe_metal.rb', line 110
def self.passthrough?
["always", "through"].include?(Oboe::Config[:tracing_mode])
end
|
.reporter ⇒ Object
142
143
144
145
146
147
148
|
# File 'lib/oboe_metal.rb', line 142
def self.reporter
if !@reporter
@reporter = Oboe::UdpReporter.new(Oboe::Config[:reporter_host])
end
return @reporter
end
|
.start? ⇒ Boolean
130
131
132
|
# File 'lib/oboe_metal.rb', line 130
def self.start?
not Oboe::Context.isValid and Oboe.always?
end
|
.through? ⇒ Boolean
118
119
120
|
# File 'lib/oboe_metal.rb', line 118
def self.through?
Oboe::Config[:tracing_mode] == "through"
end
|