blob: d2976c63d6bc3f3a7ed5e314aefe9134280a66e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
declare(strict_types=1);
namespace OpenTelemetry\Context\Propagation;
/**
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/context/api-propagators.md#getter-argument
*/
interface PropagationGetterInterface
{
/**
* Returns the list of all the keys in the carrier.
*
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/context/api-propagators.md#keys
*
* @return list<string>
*/
public function keys($carrier): array;
/**
* Gets the value of a given key from a carrier.
*/
public function get($carrier, string $key) : ?string;
}
|