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

Breadcrumb

  1. Drupal Core 11.1.x
  2. MetricAggregator.php

function MetricAggregator::collect

File

vendor/open-telemetry/sdk/Metrics/Stream/MetricAggregator.php, line 51

Class

MetricAggregator
@internal

Namespace

OpenTelemetry\SDK\Metrics\Stream

Code

public function collect(int $timestamp) : Metric {
    $exemplars = $this->exemplarReservoir ? $this->exemplarReservoir
        ->collect($this->attributes) : [];
    $metric = new Metric($this->attributes, $this->summaries, $timestamp, $exemplars);
    $this->attributes = [];
    $this->summaries = [];
    return $metric;
}
RSS feed
Powered by Drupal