NAME
OpenTelemetry::Propagator::Baggage - Propagate context using the W3C Baggage format
SYNOPSIS
use OpenTelemetry::Baggage;
use OpenTelemetry::Propagator::Baggage;
my $propagator = OpenTelemetry::Propagator::Baggage;
# Inject baggage data from the context to a carrier
my $carrier = {};
$propagator->inject( $carrier, $context );
# Extract baggage data from a carrier to the context
my $new_context = $propagator->extract( $carrier, $context );
# The baggage data will be in the context
my $baggage = OpenTelemetry::Baggage->all($new_context);
DESCRIPTION
This package defines a propagator class that can interact with the context (which can be either an implicit or explicit instance of OpenTelemetry::Context) and inject or extract data using the W3C Baggage format.
It implements the propagator interface defined in OpenTelemetry::Propagator.
SEE ALSO
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.