Tracers
👩💻 This page is under construction. 👨💻
Tracer Interface
The Ruby Tracer
interface creates Spans
and understands how to Inject
(serialize) and Extract
(deserialize) their metadata across process boundaries. It has the following capabilities:
- Start a new
Span
Inject
aSpanContext
into a carrierExtract
aSpanContext
from a carrier
Each of these will be discussed in more detail below.
Setting up a Tracer
Starting a new Trace
Accessing the Active Span
Propagating a Trace with Inject/Extract
In order to trace across process boundaries in distributed systems, services need to be able to continue the trace injected by the client that sent each request. OpenTracing allows this to happen by providing inject and extract methods that encode a span’s context into a carrier. The inject
method allows for the SpanContext
to be passed on to a carrier. The extract
method does the exact opposite. It extracts the SpanContext
from the carrier.
当前内容版权归 OpenTracing 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 OpenTracing .