The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OpenTelemetry::SDK::Trace::Span - A single operation within a trace

SYNOPSIS

...

DESCRIPTION

An instance of this class represents a single operation within a trace.

As with the API module, the only supported way to create a span is through "create_span" in OpenTelemetry::Trace::Tracer. Refer to that method's documentation for more details.

METHODS

This class extends OpenTelemetry::Trace::Span, which provides a no-op implementation of the span interface. This version implements the behaviours defined by the API.

In addition to the methods described in its parent class, this one provides the following methods:

snapshot

$readable = $span->snapshot;

Provides a read-only snapshot of this span as an instance of OpenTelemetry::SDK::Trace::Span::Readable. This will most commonly be used as the input to "export" in OpenTelemetry::Exporter.

SEE ALSO

OpenTelemetry::Trace::Span
OpenTelemetry::Trace::Tracer

COPYRIGHT AND LICENSE

This software is copyright (c) 2023 by José Joaquín Atria.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.