NAME

OpenTracing::Any - application tracing

SYNOPSIS

 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

DESCRIPTION

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:

 use OpenTracing::Any qw($renamed_tracer_variable);
 $renamed_tracer_variable->span(...);

See OpenTracing::Tracer for more details on available methods.

See also: Log::Any.

AUTHOR

Tom Molesworth <TEAM@cpan.org>

LICENSE

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