The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

OpenTracing::Protocol::Zipkin - support for Zipkin v2 JSON representation of OpenTracing data

DESCRIPTION

See https://zipkin.io/zipkin-api/#/default/post_spans for details on the current format.

bytes_from_span

Returns the given data structure as a bytestream containing a JSON UTF-8 representation, as defined by Zipkin, Datadog and other providers.

The resulting JSON will have at most the following keys:

  • id - the span ID

  • traceId - the trace ID

  • parentId - this trace's parent ID

  • localEndpoint - where this span was running

  • remoteEndpoint - the remote connection that this span was involved with

  • annotations - any timestamp annotations relating to this span

  • tags - any key/value pairs relating to this span

span_from_bytes

Takes a bytestring containing UTF-8-encoded JSON data, and returns a Perl hashref representing a span.

AUTHOR

Tom Molesworth <TEAM@cpan.org>

LICENSE

Copyright Tom Molesworth 2018-2020. Licensed under the same terms as Perl itself.

1;