blob: 70648b9194ee487ffca17a9f5a33cfca590ac986 (
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
|
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Metrics\Exemplar;
use OpenTelemetry\Context\ContextInterface;
use OpenTelemetry\SDK\Common\Attribute\AttributesInterface;
use OpenTelemetry\SDK\Metrics\Data\Exemplar;
interface ExemplarReservoirInterface
{
/**
* @param int|string $index
* @param float|int $value
*/
public function offer($index, $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp): void;
/**
* @param array<AttributesInterface> $dataPointAttributes
* @return array<Exemplar>
*/
public function collect(array $dataPointAttributes): array;
}
|