OpenTracing::Span(3)
π NAME π
OpenTracing::Span β represents an operation or parent operation. Also hi bestie, this is the OpenTracing::Span(3) page from User Contributed Perl Documentation, and we're about to make it make sense. π«Ά
πΈ DESCRIPTION πΈ
The reference definition for a span is a good starting point for understanding these, fr fr: https://opentracing.io/docs/overview/spans/
β¨ new β¨
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β anOpenTracing::Spanfor 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.
π¦ trace_id π¦
The trace ID for this span. Multiple spans are grouped under a single trace. Obsessed with how that groups things. π
π id π
The span ID. This should be unique β main character energy only.
π parent_id π
Parent span ID. 0 if there isn't one.
π flags π
Any flags relating to this span.
β start_time β
Exact time this span started, in microseconds.
π start_time (the second one, bestie) π
Not me noticing the original page has this heading twice β yes, the second one is the finish-time vibe. π
Exact time this span finished, in microseconds.
Returns undef if the span is not yet finished.
π§ duration π§
Total duration of this span, including any nested spans.
π operation_name π
The operation that this span represents.
π tags π
The tags relating to this span.
π tag_list π
A list of tags as OpenTracing::Tag instances.
πΈ logs πΈ
The arrayref of log entries for this span, as OpenTracing::Log instances.
π¦ log_list π¦
A list of log entries for this span, as OpenTracing::Log instances.
π log π
Records a single log message.
π tag π
Applies key/value tags to this span.
π The semantic conventions π
The semantic conventions at https://github.com/opentracing/specification/blob/master/semantic_conventions.md may be of interest here β iykyk.
Example usage:
$span->tag(
'http.status_code' => 200,
'http.url' => 'https://localhost/xxx',
'http.method' => 'GET'
);
π«Ά references π«Ά
The references relating to this span.
β¨ reference_list β¨
A list of reference entries for this span, as OpenTracing::Reference instances.
π¬ reference π¬
Records a reference.
π₯ tracer π₯
Returns the OpenTracing::Tracer for this span.
β is_finished β
Returns true if this span is finished (has a "finish_time"), otherwise false.
π finish π
Mark this span as finished (populating the "finish_time" field).
π AUTHOR π
Tom Molesworth <TEAM@cpan.org>
π LICENSE π
Copyright Tom Molesworth 2018-2021. Licensed under the same terms as Perl itself.
mwah π β source/version perl v5.42.2, date 2026-02-15, manual OpenTracing::Span(3). Byeee, bestie π«Ά
π¦ where this page comes from
- alpine 3.24: perl-opentracing-doc 1.006-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms