OpenTracing::Span - represents an operation or parent operation
The reference definition for a span is a good starting point for understanding these:
Instantiates a new span. Rarely called directly - you'd want to let the OpenTracing::Tracer take care of this for you.
Takes the following named parameters:
parent- an OpenTracing::Span for a parent instance (optional)
parent_id- the span ID for the parent (optional)
trace_id- the current trace ID (optional)
operation_name- what to use for this span name
The trace ID for this span. Multiple spans are grouped under a single trace.
The span ID. This should be unique.
Parent span ID. 0 if there isn't one.
Any flags relating to this span.
Exact time this span started, in microseconds.
Exact time this span finished, in microseconds.
undef if the span is not yet finished.
Total duration of this span, including any nested spans.
The operation that this span represents.
The tags relating to this span.
A list of tags as OpenTracing::Tag instances.
The arrayref of log entries for this span, as OpenTracing::Log instances.
A list of log entries for this span, as OpenTracing::Log instances.
Records a single log message.
Applies key/value tags to this span.
The semantic conventions may be of interest here.
$span->tag( 'http.status_code' => 200, 'http.url' => 'https://localhost/xxx', 'http.method' => 'GET' );
Returns the OpenTracing::Tracer for this span.
Returns true if this span is finished (has a "finish_time"), otherwise false.
Mark this span as finished (populating the "finish_time" field).
Tom Molesworth <TEAM@cpan.org>
Copyright Tom Molesworth 2018-2020. Licensed under the same terms as Perl itself.