ttrss/vendor/open-telemetry/sdk/Metrics/Exemplar/NoopReservoir.php

22 lines
501 B
PHP
Raw Permalink Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Metrics\Exemplar;
use OpenTelemetry\Context\ContextInterface;
use OpenTelemetry\SDK\Common\Attribute\AttributesInterface;
final class NoopReservoir implements ExemplarReservoirInterface
{
public function offer($index, $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp): void
{
// no-op
}
public function collect(array $dataPointAttributes): array
{
return [];
}
}