The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenTracing::Tracer - application tracing

DESCRIPTION

This provides the interface between the OpenTracing API and the tracing service(s) for an application.

Typically a single process would have one tracer instance.

METHODS

process

Returns the current OpenTracing::Process.

is_enabled

Returns true if this tracer is currently enabled.

enable

Enable the current tracer.

disable

Disable the current tracer.

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 the pending list, if we're currently enabled.

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.

AUTHOR

Tom Molesworth <TEAM@cpan.org>

LICENSE

Copyright Tom Molesworth 2018-2021. Licensed under the same terms as Perl itself.