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

Breadcrumb

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

function DeltaStorage::mergeInto

3 calls to DeltaStorage::mergeInto()
DeltaStorage::add in vendor/open-telemetry/sdk/Metrics/Stream/DeltaStorage.php
DeltaStorage::collect in vendor/open-telemetry/sdk/Metrics/Stream/DeltaStorage.php
DeltaStorage::tryUnlink in vendor/open-telemetry/sdk/Metrics/Stream/DeltaStorage.php

File

vendor/open-telemetry/sdk/Metrics/Stream/DeltaStorage.php, line 94

Class

DeltaStorage
@internal @phan-file-suppress PhanUndeclaredTypeParameter, PhanUndeclaredTypeProperty

Namespace

OpenTelemetry\SDK\Metrics\Stream

Code

private function mergeInto(Metric $into, Metric $metric) : void {
    foreach ($metric->summaries as $k => $summary) {
        $into->attributes[$k] ??= $metric->attributes[$k];
        $into->summaries[$k] = isset($into->summaries[$k]) ? $this->aggregation
            ->merge($into->summaries[$k], $summary) : $summary;
    }
    $into->exemplars += $metric->exemplars;
}

API Navigation

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