NAME

OpenTracing::Implementation::DataDog::ScopeManager - Keep track of active scopes

SYNOPSIS

my $span = $TRACER->build_span( ... );

my $scope_manager = $TRACER->get_scope_manager;

my $scope = $scope_manager->build_scope(
    span                 => $span,
    finish_span_on_close => true,
);

...

$scope->close;

DELEGATED INSTANCE METHODS

build_scope

This method will build a new Scope object, that, when close is being called (which you should), the current scope is being set back as the active scope.

See OpenTracing::Roles::ScopeManager for the description of the method.

SEE ALSO

OpenTracing::Implementation::DataDog

Sending traces to DataDog using Agent.

OpenTracing::Role::ScopeManager

Role for OpenTracing implementations.

AUTHOR

Theo van Hoesel <tvanhoesel@perceptyx.com>

COPYRIGHT AND LICENSE

'OpenTracing::Implementation::DataDog' is Copyright (C) 2019 .. 2020, Perceptyx Inc

This library is free software; you can redistribute it and/or modify it under the terms of the Artistic License 2.0.

This package is distributed in the hope that it will be useful, but it is provided "as is" and without any express or implied warranties.

For details, see the full text of the license in the file LICENSE.