NAME
OpenTracing::Batch - represents a group of zero or more spans
DESCRIPTION
A batch of spans is used for submitting results to an opentracing endpoint.
Once you've created a batch, take a look at "new_span" and the OpenTracing::SpanProxy class.
METHODS
process
Returns the OpenTracing::Process that this batch applies to. Each batch is submitted from a single process.
spans
Returns an arrayref of OpenTracing::Span instances.
span_list
Returns a list of OpenTracing::Span instances.
add_span
Adds a new OpenTracing::Span instance to this batch.
new_span
Creates a new OpenTracing::Span, adds it to this batch, and returns an OpenTracing::SpanProxy instance (which will automatically mark the end of the span when it's destroyed).
This is most likely to be the method you'll want for working with spans in user code.
DESTROY
Triggers callbacks when the batch is discarded. Normally used by the transport mechanism to ensure that the batch is sent over to the tracing endpoint.
INHERITED METHODS
AUTHOR
Tom Molesworth <TEAM@cpan.org>
LICENSE
Copyright Tom Molesworth 2018-2021. Licensed under the same terms as Perl itself.