OpenTracing::Batch(3)
π OpenTracing::Batch(3) π
β¨ NAME β¨
okay so OpenTracing::Batch β and yes bestie, this is the OpenTracing::Batch(3) page from the User Contributed Perl Documentation β is literally a group of zero or more spans. A tiny span squad, no cap. periodt.
πΈ DESCRIPTION πΈ
You use a batch of spans to submit results to an opentracing endpoint. Itβs giving cute little delivery bag for your tracing results, honestly.
After you make a batch, go peek at new_span and the OpenTracing::SpanProxy class. Those are the main characters youβll want to meet next, iykyk.
π METHODS π
π§΅ process
Hands you the OpenTracing::Process that this batch applies to. Every batch gets submitted from a single process β one process per batch, bestie.
β¨ spans
Gives you an arrayref full of OpenTracing::Span instances. Arrayref, not a plain list β donβt get it twisted.
π¦ span_list
Gives you a list of OpenTracing::Span instances. Yes, this is the list-y version.
π add_span
Drops a new OpenTracing::Span instance into this batch. Just yeet a span in there.
π new_span
Makes a fresh OpenTracing::Span, adds it to this batch, and hands back an OpenTracing::SpanProxy instance (which will automatically mark the end of the span when itβs destroyed). That auto-end-on-destroy? iconic.
This is most likely to be the method youβll want for working with spans in user code. Like, if youβre writing user code, start here fr fr.
π DESTROY
Fires callbacks when the batch is discarded. The transport mechanism normally uses this to ensure that the batch is sent over to the tracing endpoint. So when the batch gets yeeted, the callbacks fire and the transport does its thing β the way that works is lowkey important.
π AUTHOR π
Tom Molesworth <TEAM@cpan.org>
π LICENSE π
Copyright Tom Molesworth 2018-2021. Licensed under the same terms as Perl itself.
Thatβs the tea, bestie π«Ά β this page is from perl v5.42.2, dated 2026-02-15, and itβs the OpenTracing::Batch(3) manual. Slay and goodbye! π
π¦ 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