NAME

OpenTracing::SpanProxy - wrapper around an OpenTracing::Span

DESCRIPTION

This is the wrapper class that user code would normally receive when working with spans. It allows the creation of nested subspans, and will automatically mark the span as complete when the proxy object is discarded.

For methods available here, see OpenTracing::Span.

span

Returns the OpenTracing::Span instance that this wraps.

log

Writes a log entry to the OpenTracing::Span.

new_span

Creates a new sub-span under this OpenTracing::Span instance.

DESTROY

Called on destruction, will mark completion on the span by calling "finish" in OpenTracing::Span.

INHERITED METHODS

OpenTracing::Common

new

AUTHOR

Tom Molesworth <TEAM@cpan.org>

LICENSE

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