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

Breadcrumb

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

function SynchronousMetricStream::push

Overrides MetricStreamInterface::push

File

vendor/open-telemetry/sdk/Metrics/Stream/SynchronousMetricStream.php, line 52

Class

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

Namespace

OpenTelemetry\SDK\Metrics\Stream

Code

public function push(Metric $metric) : void {
    [
        $this->timestamp,
        $metric->timestamp,
    ] = [
        $metric->timestamp,
        $this->timestamp,
    ];
    $this->delta
        ->add($metric, $this->readers);
}

API Navigation

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