| 1 | package OpenTracing::Implementation::NoOp::Span; | ||||||||||
| 2 | |||||||||||
| 3 | =head1 NAME | ||||||||||
| 4 | |||||||||||
| 5 | OpenTracing::Implementation::NoOp::Span - NoOp, so code won't break! | ||||||||||
| 6 | |||||||||||
| 7 | =head1 DESCRIPTION | ||||||||||
| 8 | |||||||||||
| 9 | Objects of this class implement the required methods of the | ||||||||||
| 10 | L<OpenTracing::Interface::Span>, | ||||||||||
| 11 | to be compliant during testing and allow applications to continue working | ||||||||||
| 12 | without having to catch exceptions all the time. | ||||||||||
| 13 | |||||||||||
| 14 | None of the methods will do anything useful. | ||||||||||
| 15 | |||||||||||
| 16 | =cut | ||||||||||
| 17 | |||||||||||
| 18 | 5 | our $VERSION = 'v0.72.1'; | |||||||||
| 19 | |||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | 5 | ▶ | use OpenTracing::Implementation::NoOp::SpanContext; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 23 | |||||||||||
| 24 | |||||||||||
| 25 | |||||||||||
| 26 | 0 | ▶ | sub new { bless {} } | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 27 | |||||||||||
| 28 | |||||||||||
| 29 | |||||||||||
| 30 | 0 | ▶ | sub get_context { | ||||||||
|
Subroutine
get_context: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 31 | 0 | OpenTracing::Implementation::NoOp::SpanContext->new( ) | |||||||||
| 32 | } | ||||||||||
| 33 | |||||||||||
| 34 | 0 | ▶ | sub overwrite_operation_name { shift } | ||||||||
|
Subroutine
overwrite_operation_name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 35 | |||||||||||
| 36 | 0 | ▶ | sub finish { shift } | ||||||||
|
Subroutine
finish: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub add_tag { shift } | ||||||||
|
Subroutine
add_tag: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 39 | 0 | ▶ | sub add_tags { shift } | ||||||||
|
Subroutine
add_tags: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 40 | |||||||||||
| 41 | 0 | ▶ | sub get_tags { return ( ) } | ||||||||
|
Subroutine
get_tags: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 42 | |||||||||||
| 43 | 0 | ▶ | sub log_data { shift } | ||||||||
|
Subroutine
log_data: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 44 | |||||||||||
| 45 | 0 | ▶ | sub add_baggage_item { shift } | ||||||||
|
Subroutine
add_baggage_item: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 46 | 0 | ▶ | sub add_baggage_items { shift } | ||||||||
|
Subroutine
add_baggage_items: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 47 | |||||||||||
| 48 | 0 | ▶ | sub get_baggage_item { undef } | ||||||||
|
Subroutine
get_baggage_item: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 49 | 0 | ▶ | sub get_baggage_items { return ( ) } | ||||||||
|
Subroutine
get_baggage_items: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 50 | |||||||||||
| 51 | |||||||||||
| 52 | 5 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=2 SCAR=7.0
| |||||||||||
| 53 | 5 | ▶ | use Role::Tiny::With; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 54 | with 'OpenTracing::Interface::Span' | ||||||||||
| 55 | 5 | ▶ | if $ENV{OPENTRACING_INTERFACE}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 56 | } # check at compile time, perl -c will work | ||||||||||
| 57 | |||||||||||
| 58 | |||||||||||
| 59 | |||||||||||
| 60 | 5 | 1; | |||||||||