OpenTracing::Role::ScopeManager - Role for OpenTracing implementations.
package OpenTracing::Implementation::MyBackendService::ScopeManager; use Moo; with 'OpenTracing::Role::ScopeManager' 1;
This is a role for OpenTracing implenetations that are compliant with the OpenTracing::Interface.
build_scope
This method should return a Scope
Scope
span
A OpenTracing compliant Span object.
Span
finish_span_on_close
A Bool type.
Bool
Unlike the OpenTracing API interface specification, build_scope does not let it up for discusion, span and finish_span_on_close are expected named parameters.
Sets the given $span as being the active span in a newly created Scope.
$span
A Bool type, that decides wether or not finish gets called on the $span object. Defaults to 'true'.
finish
This is part of a proposed API change.
To install OpenTracing::Role, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenTracing::Role
CPAN shell
perl -MCPAN -e shell install OpenTracing::Role
For more information on module installation, please visit the detailed CPAN module installation guide.