Module: Datadog::OpenTracer
- Defined in:
- lib/ddtrace/opentracer.rb,
lib/ddtrace/opentracer/span.rb,
lib/ddtrace/opentracer/scope.rb,
lib/ddtrace/opentracer/tracer.rb,
lib/ddtrace/opentracer/carrier.rb,
lib/ddtrace/opentracer/propagator.rb,
lib/ddtrace/opentracer/span_context.rb,
lib/ddtrace/opentracer/global_tracer.rb,
lib/ddtrace/opentracer/scope_manager.rb,
lib/ddtrace/opentracer/rack_propagator.rb,
lib/ddtrace/opentracer/binary_propagator.rb,
lib/ddtrace/opentracer/thread_local_scope.rb,
lib/ddtrace/opentracer/distributed_headers.rb,
lib/ddtrace/opentracer/text_map_propagator.rb,
lib/ddtrace/opentracer/span_context_factory.rb,
lib/ddtrace/opentracer/thread_local_scope_manager.rb
Overview
Namespace for ddtrace OpenTracing implementation
Defined Under Namespace
Modules: BinaryPropagator, GlobalTracer, Propagator, RackPropagator, SpanContextFactory, TextMapPropagator Classes: Carrier, DistributedHeaders, Scope, ScopeManager, Span, SpanContext, ThreadLocalScope, ThreadLocalScopeManager, Tracer
Class Method Summary collapse
Class Method Details
.load_opentracer ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/ddtrace/opentracer.rb', line 10 def load_opentracer require 'opentracing' require 'opentracing/carrier' require 'ddtrace' require 'ddtrace/opentracer/carrier' require 'ddtrace/opentracer/tracer' require 'ddtrace/opentracer/span' require 'ddtrace/opentracer/span_context' require 'ddtrace/opentracer/span_context_factory' require 'ddtrace/opentracer/scope' require 'ddtrace/opentracer/scope_manager' require 'ddtrace/opentracer/thread_local_scope' require 'ddtrace/opentracer/thread_local_scope_manager' require 'ddtrace/opentracer/distributed_headers' require 'ddtrace/opentracer/propagator' require 'ddtrace/opentracer/text_map_propagator' require 'ddtrace/opentracer/binary_propagator' require 'ddtrace/opentracer/rack_propagator' require 'ddtrace/opentracer/global_tracer' # Modify the OpenTracing module functions OpenTracing.module_eval do class << self prepend Datadog::OpenTracer::GlobalTracer end end end |
.supported? ⇒ Boolean
6 7 8 |
# File 'lib/ddtrace/opentracer.rb', line 6 def supported? Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.1') end |