| 1 | package OpenTracing::Protocol; | ||
| 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 | 3 | our $VERSION = '1.006'; # VERSION | |
| 7 | 3 | our $AUTHORITY = 'cpan:TEAM'; # AUTHORITY | |
| 8 | |||
| 9 | 3 | ▶ | no indirect; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | =encoding utf8 | ||
| 13 | |||
| 14 | =head1 NAME | ||
| 15 | |||
| 16 | OpenTracing::Protocol | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | Currently the following protocols are known: | ||
| 21 | |||
| 22 | =over 4 | ||
| 23 | |||
| 24 | =item * L<OpenTracing::Protocol::Jaeger> - provides binary Thrift encoding for the Jæger opentracing tool | ||
| 25 | |||
| 26 | =item * L<OpenTracing::Protocol::Zipkin> - JSON representation as supported by Zipkin | ||
| 27 | |||
| 28 | =back | ||
| 29 | |||
| 30 | This module provides a rôle for the encoding/decoding | ||
| 31 | functionality. Implementations are not expected to | ||
| 32 | handle any data transfer - the encoded bytes would | ||
| 33 | be sent/received by the transport layer instead. | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | 3 | ▶ | use Role::Tiny; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 38 | |||
| 39 | 3 | requires qw( | |
| 40 | bytes_from_span | ||
| 41 | span_from_bytes | ||
| 42 | ); | ||
| 43 | |||
| 44 | 3 | 1; | |
| 45 | |||