18 Aug 2020 20:14:41 UTC
- Distribution: OpenTracing-Implementation-NoOp
- Module version: v0.72.1
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- How to Contribute
- KwaliteeBus factor: 2
- 43.06% Coverage
- License: perl_5
- Activity24 month
- Download (7.56KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionVANHOESEL Theo van Hoesel
- CLASS METHODS
- ENVIRONMENT VARIABLES
- COPYRIGHT AND LICENSE
OpenTracing::Implementation::NoOp - Stops Crashing, doing nothing else
use OpenTracing::Implementation::NoOp; my $tracer = OpenTracing::Implementation::NoOp->bootstrap_tracer( );
The NoOp Implementation will 'disable' the entire OpenTracing infrastructure by making almost every method do nothing, or return a 'NoOp' object.
This way, none of the code will break if there is no OpenTracing active.
This implementation does not rely on OpenTracing::Role, because those already add attributes and methods that are totally useless in this context of a 'NoOp'. Instead, this only requires the OpenTrace::Interface if the
OPENTRACING_INTERFACEenvironment variable has been set (for development purposes).
my $tracer = OpenTracing::Implementation::NoOp->bootstrap_tracer( @args );
Any arguments passed in, are dutyfully passed, but are supposedly useless.
If set to true, this will wrap all methods inside Type::Tiny typechecks, for incomming parameters and return values. Beside that, it will add check for required methods according to the OpenTracing::Interface API description.
Theo van Hoesel <firstname.lastname@example.org>
'OpenTracing::Implementation::NoOp' 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.
Module Install Instructions
To install OpenTracing::Implementation::NoOp, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install OpenTracing::Implementation::NoOp
For more information on module installation, please visit the detailed CPAN module installation guide.