Module: Instana
- Defined in:
- lib/instana/base.rb,
lib/instana/test.rb,
lib/instana/util.rb,
lib/instana/agent.rb,
lib/instana/config.rb,
lib/instana/logger.rb,
lib/instana/tracer.rb,
lib/instana/helpers.rb,
lib/instana/version.rb,
lib/instana/collector.rb,
lib/instana/thread_local.rb,
lib/instana/tracing/span.rb,
lib/instana/collectors/gc.rb,
lib/instana/tracing/trace.rb,
lib/instana/instrumentation.rb,
lib/instana/frameworks/rails.rb,
lib/instana/collectors/memory.rb,
lib/instana/collectors/thread.rb,
lib/instana/tracing/processor.rb,
lib/instana/instrumentation/rack.rb,
lib/instana/tracing/span_context.rb,
lib/instana/instrumentation/dalli.rb,
lib/instana/instrumentation/excon.rb,
lib/instana/instrumentation/redis.rb,
lib/instana/instrumentation/rest-client.rb,
lib/instana/instrumentation/sidekiq-client.rb,
lib/instana/instrumentation/sidekiq-worker.rb,
lib/instana/frameworks/instrumentation/action_view.rb,
lib/instana/frameworks/instrumentation/mysql_adapter.rb,
lib/instana/frameworks/instrumentation/mysql2_adapter.rb,
lib/instana/frameworks/instrumentation/action_controller.rb,
lib/instana/frameworks/instrumentation/postgresql_adapter.rb,
lib/instana/frameworks/instrumentation/abstract_mysql_adapter.rb
Defined Under Namespace
Modules: Collectors, Helpers, Instrumentation, ThreadLocal, Util Classes: Agent, Collector, Config, Processor, Rack, Railtie, Span, SpanContext, Test, Trace, Tracer, XLogger
Constant Summary collapse
- VERSION =
"1.7.10"
- VERSION_FULL =
"instana-#{VERSION}"
- AUTOLOAD_DIRECTORIES =
[:instrumentation, :frameworks].freeze
Class Attribute Summary collapse
-
.agent ⇒ Object
Returns the value of attribute agent.
-
.collector ⇒ Object
Returns the value of attribute collector.
-
.config ⇒ Object
Returns the value of attribute config.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.pid ⇒ Object
Returns the value of attribute pid.
-
.processor ⇒ Object
Returns the value of attribute processor.
-
.tracer ⇒ Object
Returns the value of attribute tracer.
Class Method Summary collapse
-
.debug? ⇒ Boolean
Indicates whether we are running in a development environment.
-
.setup ⇒ Object
setup.
-
.test? ⇒ Boolean
Indicates whether we are running in the test environment.
Class Attribute Details
.agent ⇒ Object
Returns the value of attribute agent.
8 9 10 |
# File 'lib/instana/base.rb', line 8 def agent @agent end |
.collector ⇒ Object
Returns the value of attribute collector.
9 10 11 |
# File 'lib/instana/base.rb', line 9 def collector @collector end |
.config ⇒ Object
Returns the value of attribute config.
12 13 14 |
# File 'lib/instana/base.rb', line 12 def config @config end |
.logger ⇒ Object
Returns the value of attribute logger.
13 14 15 |
# File 'lib/instana/base.rb', line 13 def logger @logger end |
.pid ⇒ Object
Returns the value of attribute pid.
14 15 16 |
# File 'lib/instana/base.rb', line 14 def pid @pid end |
.processor ⇒ Object
Returns the value of attribute processor.
11 12 13 |
# File 'lib/instana/base.rb', line 11 def processor @processor end |
.tracer ⇒ Object
Returns the value of attribute tracer.
10 11 12 |
# File 'lib/instana/base.rb', line 10 def tracer @tracer end |
Class Method Details
.debug? ⇒ Boolean
Indicates whether we are running in a development environment.
33 34 35 |
# File 'lib/instana/base.rb', line 33 def debug? ENV.key?('INSTANA_GEM_DEV') end |
.setup ⇒ Object
setup
Setup the Instana language agent to an informal “ready to run” state.
22 23 24 25 26 27 |
# File 'lib/instana/base.rb', line 22 def setup @agent = ::Instana::Agent.new @tracer = ::Instana::Tracer.new @processor = ::Instana::Processor.new @collector = ::Instana::Collector.new end |
.test? ⇒ Boolean
Indicates whether we are running in the test environment.
41 42 43 |
# File 'lib/instana/base.rb', line 41 def test? ENV.key?('INSTANA_GEM_TEST') end |