2 JSON representation of OpenTracing data
=head1 DESCRIPTION
See L<https://zipkin.io/zipkin-api/#/default/post_spans> for details on
the current format.
=cut
use JSON::MaybeUTF8 qw(:v1);
use JSON:
qw(JSON);
use Role::Tiny::With;
with qw(OpenTracing::Protocol);
sub new { bless { @_[1..$#_] }, $_[0] }
=head2 bytes_from_span
Returns the given data structure as a bytestream containing
a JSON U
TF-8 representation, as defined by Zipkin, Datadog and
other providers.
The resulting JSON will have at most the following keys:
=over 4
=item * C<id> - the span ID
=item * C<traceId> - the trace