OpenTracing::Role::ContextReference - Role for OpenTracing implementations.
This Moo::Role provides the consuming class with most, if not all, of the methods being described in OpenTracing::Interface::ContextReference.
The following methods from OpenTracing::Interface have been implemented. See their documentation for more details.
Creates a SpanContext ContextReference for which type_is_child_of is 'true'.
See "new_child_of" in OpenTracing::Interface::ContextReference.
See "type_is_child_of" in OpenTracing::Interface::ContextReference.
Creates a SpanContext ContextReference for which type_is_follows_from is 'true'.
See "new_follows_from" in OpenTracing::Interface::ContextReference.
See "type_is_follows_from" in OpenTracing::Interface::ContextReference.
Returns the original referenced SpanContext.
See "get_referenced_context" in OpenTracing::Interface::ContextReference.
Never use any of attributes or methods below in any integration!
Only methods mentioned in the Public OpenTracing::Interface are safe to be used in any integration or when instrumenting applications.
An Enum type of either the constant CHILD_OF or FOLLOWS_FROM. This is just an implementation detail as other methods are provided to deal with reference_type. See above
A required SpanContext type.
Type constraints for checking Interfaces
Defines the ContextReference
Theo van Hoesel <firstname.lastname@example.org>
'OpenTracing API for Perl' 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 library 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.
To install OpenTracing::Role, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.