OpenTracing::Any - application tracing
use OpenTracing::Any qw($tracer); { my $span = $tracer->span(operation_name => 'whatever'); $span->add_tag(xyz => 'abc'); sleep 3; } # at this point the span will be finished and have an approximate timing of ~3s
This provides a tracer to the current package. By default it will be given the package variable name $tracer, but you can override this by providing a different name:
$tracer
use OpenTracing::Any qw($renamed_tracer_variable); $renamed_tracer_variable->span(...);
See OpenTracing::Tracer for more details on available methods.
See also: Log::Any.
Tom Molesworth <TEAM@cpan.org>
Copyright Tom Molesworth 2018-2021. 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.