| 1 | package OpenTracing::Interface::Span; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | |||
| 7 | 3 | our $VERSION = 'v0.202.0'; | |
| 8 | |||
| 9 | |||
| 10 | 3 | ▶ | use Role::Declare -lax; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 3 | ▶ | use OpenTracing::Types qw/SpanContext/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 3 | ▶ | use Time::HiRes qw/time/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 3 | ▶ | use Types::Standard qw/Any Str Value HashRef ArrayRef Maybe Str Value/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | 3 | ▶ | use Types::Common::Numeric qw/PositiveNum PositiveOrZeroNum/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | |||
| 17 | 3 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | |||
| 20 | instance_method get_context( | ||
| 21 | 3 | ▶ | ) :Return(SpanContext) {} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | instance_method overwrite_operation_name( | ||
| 26 | Str $operation_name | ||
| 27 | 3 | ▶ | ) :ReturnSelf {} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 28 | |||
| 29 | |||
| 30 | |||
| 31 | instance_method finish( | ||
| 32 | PositiveOrZeroNum $time_stamp = time(), | ||
| 33 | 3 | ▶ | ) :ReturnSelf {} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 34 | |||
| 35 | |||
| 36 | |||
| 37 | instance_method add_tag( | ||
| 38 | Str $key, | ||
| 39 | Value $value | ||
| 40 | 3 | ▶ | ) :ReturnSelf {} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | |||
| 42 | |||
| 43 | |||
| 44 | instance_method add_tags( | ||
| 45 | %key_values, | ||
| 46 | ) :ReturnSelf { | ||
| 47 | ( HashRef[Value] )->assert_valid( {%key_values} ) | ||
| 48 | 3 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 49 | |||
| 50 | |||
| 51 | |||
| 52 | instance_method log_data( | ||
| 53 | %key_values | ||
| 54 | ) :ReturnSelf { | ||
| 55 | ( HashRef[ Value ] )->assert_valid( { %key_values } ); | ||
| 56 | 3 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 57 | |||
| 58 | |||
| 59 | |||
| 60 | instance_method add_baggage_item( | ||
| 61 | Str $key, | ||
| 62 | Value $value | ||
| 63 | 3 | ▶ | ) :ReturnSelf {} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | instance_method add_baggage_items( | ||
| 68 | %key_values, | ||
| 69 | ) :ReturnSelf { | ||
| 70 | ( HashRef[Value] )->assert_valid( {%key_values} ) | ||
| 71 | 3 | ▶ | } |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | instance_method get_baggage_item( | ||
| 76 | Str $key | ||
| 77 | 3 | ▶ | ) :ReturnMaybe(Value) {} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 78 | |||
| 79 | |||
| 80 | |||
| 81 | instance_method get_baggage_items( | ||
| 82 | 3 | ▶ | ) :ReturnList(Any) {} |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 83 | |||
| 84 | |||
| 85 | |||
| 86 | 3 | 1; | |