The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenTracing::Implementation::Test::SpanContext - OpenTracing Test for SpanContext

DESCRIPTION

This is the SpanContext used by OpenTracing::Implementation::Test. The following attributes are provided on top of OpenTracing::Role::SpanContext:

level

The context will know how deep in the span hierarchy it is. The root is always level 0.

context_item

This attributes actually does nothing. You can use it to test any code which should set context attributes without having to subclass.

METHODS

level()

Returns the depth of the span (number of parent spans) in the hierarchy.

with_level($level)

Create a cloned object with with the new $level.

with_next_level()

Create a cloned object with level increased by one.

with_context_item($new_item)

Create a cloned object with $new_item as context_item.

AUTHOR

Szymon Nieznanski <snieznanski@perceptyx.com>

COPYRIGHT AND LICENSE

'Test::OpenTracing::Integration' 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.