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

Breadcrumb

  1. Drupal Core 11.1.x

NoopReservoir.php

Namespace

OpenTelemetry\SDK\Metrics\Exemplar

File

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

View source
<?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 [];
    }

}

Classes

Title Deprecated Summary
NoopReservoir

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal