Module: OpenTracing
- Extended by:
- Forwardable
- Defined in:
- lib/opentracing.rb,
lib/opentracing/span.rb,
lib/opentracing/scope.rb,
lib/opentracing/tracer.rb,
lib/opentracing/carrier.rb,
lib/opentracing/version.rb,
lib/opentracing/reference.rb,
lib/opentracing/span_context.rb,
lib/opentracing/scope_manager.rb
Overview
:nodoc:
Defined Under Namespace
Classes: Carrier, Reference, Scope, ScopeManager, Span, SpanContext, Tracer
Constant Summary collapse
- FORMAT_TEXT_MAP =
Text format for Tracer#inject and Tracer#extract.
The carrier for FORMAT_TEXT_MAP should be a Hash with string values.
1
- FORMAT_BINARY =
Binary format for #inject and #extract
The carrier for FORMAT_BINARY should be a string, treated as a raw sequence of bytes.
2
- FORMAT_RACK =
Due to Rack’s popularity within the Ruby community, OpenTracing-Ruby provides a Rack-specific format for injection into and extraction from HTTP headers specifically, though there are some strings attached.
The carrier for FORMAT_RACK should be ‘env` or equivalent. It behaves like FORMAT_TEXT_MAP, but with all keys transformed per Rack’s treatment of HTTP headers. Keep in mind that Rack automatically uppercases all headers and replaces dashes with underscores. This means that if you use dashes and underscores and case-sensitive baggage keys, they may collide or become unrecognizable.
3
- VERSION =
'0.5.0'.freeze
Class Attribute Summary collapse
-
.global_tracer ⇒ Object
Global tracer to be used when OpenTracing.start_span, inject or extract is called.
Class Attribute Details
.global_tracer ⇒ Object
Global tracer to be used when OpenTracing.start_span, inject or extract is called
38 39 40 |
# File 'lib/opentracing.rb', line 38 def global_tracer @global_tracer end |