module OpenTracing
Constants
- FORMAT_BINARY
Binary format for inject and extract
The carrier for
FORMAT_BINARY
should be a string, treated as a raw sequence of bytes.- 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 likeFORMAT_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.- FORMAT_TEXT_MAP
Text format for
Tracer#inject
andTracer#extract
.The carrier for
FORMAT_TEXT_MAP
should be a Hash with string values.- VERSION
Attributes
Global tracer to be used when OpenTracing.start_span, inject or extract is called