Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

ExemplarReservoirInterface.php

Namespace

OpenTelemetry\SDK\Metrics\Exemplar

File

vendor/open-telemetry/sdk/Metrics/Exemplar/ExemplarReservoirInterface.php

View source
<?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 {
    public function offer(int|string $index, float|int $value, AttributesInterface $attributes, ContextInterface $context, int $timestamp) : void;
    
    /**
     * @param array<AttributesInterface> $dataPointAttributes
     * @return array<Exemplar>
     */
    public function collect(array $dataPointAttributes) : array;

}

Interfaces

Title Deprecated Summary
ExemplarReservoirInterface
RSS feed
Powered by Drupal