summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Baggage/BaggageBuilderInterface.php
blob: 301cfbc3c4d1c6f69a077c7a26a66f99da48a97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace OpenTelemetry\API\Baggage;

use OpenTelemetry\API\Baggage as API;

interface BaggageBuilderInterface
{
    /**
     * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/baggage/api.md#set-value
     * @param mixed $value
     */
    public function set(string $key, $value, API\MetadataInterface $metadata = null): API\BaggageBuilderInterface;

    /**
     * @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/baggage/api.md#remove-value
     */
    public function remove(string $key): API\BaggageBuilderInterface;

    public function build(): API\BaggageInterface;
}