- PROVIDED MODULES
- EXTRA METHODS
- COPYRIGHT AND LICENSE
OpenTracing::Implementation::Test - In-Memory OpenTracing Test Implementation
use OpenTracing::Implementation::Test; use Data::Dumper; my $tracer = OpenTracing::Implementation::Test->bootstrap_tracer(); my $scope = $tracer->start_active_span('foo'); ... print Dumper $tracer->get_spans_as_struct(); print $tracer->span_tree();
This is a simple in-memory implementation useful for checking your instrumentation. Instead of sending the data off to another service, the tracer itself keeps track of spans and allows for easy inspection.
All of these consume the appropriate OpenTracing::Role:
The modules below offer aditional functionallity specifacally for testing purposes.
The test-tracer provides a few extra methods on top of the role, see OpenTracing::Implementation::Test::Tracer for details.
Returns a list of hashes representing all spans, including information from SpanContexts.
Return a string representation of span relationships.
The test will compare current saved spans using
Make testing more easy.
Removes all saved spans from the tracer.
Returns the depth of the span.
Returns the value of a non-functional test attribute.
Szymon Nieznanski <email@example.com>
'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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 96:
'=item' outside of any '=over'