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

Breadcrumb

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

class Exemplar

Same name in this branch
  1. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/Exemplar.php \Opentelemetry\Proto\Metrics\V1\Exemplar

Hierarchy

  • class \OpenTelemetry\SDK\Metrics\Data\Exemplar

Expanded class hierarchy of Exemplar

6 files declare their use of Exemplar
AggregationInterface.php in vendor/open-telemetry/sdk/Metrics/AggregationInterface.php
AsynchronousMetricStream.php in vendor/open-telemetry/sdk/Metrics/Stream/AsynchronousMetricStream.php
BucketStorage.php in vendor/open-telemetry/sdk/Metrics/Exemplar/BucketStorage.php
ExemplarReservoirInterface.php in vendor/open-telemetry/sdk/Metrics/Exemplar/ExemplarReservoirInterface.php
Metric.php in vendor/open-telemetry/sdk/Metrics/Stream/Metric.php

... See full list

File

vendor/open-telemetry/sdk/Metrics/Data/Exemplar.php, line 9

Namespace

OpenTelemetry\SDK\Metrics\Data
View source
final class Exemplar {
    public function __construct(int|string $index, float|int $value, int $timestamp, AttributesInterface $attributes, ?string $traceId, ?string $spanId) {
    }
    
    /**
     * @param iterable<Exemplar> $exemplars
     * @return array<list<Exemplar>>
     */
    public static function groupByIndex(iterable $exemplars) : array {
        $grouped = [];
        foreach ($exemplars as $exemplar) {
            $grouped[$exemplar->index][] = $exemplar;
        }
        return $grouped;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Exemplar::groupByIndex public static function
Exemplar::__construct public function

API Navigation

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