OpenTracing::Batch - represents a group of zero or more spans
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.
Returns the OpenTracing::Process that this batch applies to. Each batch is submitted from a single process.
Returns an arrayref of OpenTracing::Span instances.
Returns a list of OpenTracing::Span instances.
Adds a new OpenTracing::Span instance to this batch.
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.
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.
new
Tom Molesworth <TEAM@cpan.org>
Copyright Tom Molesworth 2018-2019. Licensed under the same terms as Perl itself.
To install OpenTracing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenTracing
CPAN shell
perl -MCPAN -e shell install OpenTracing
For more information on module installation, please visit the detailed CPAN module installation guide.