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

Breadcrumb

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

function ObserverInterface::observe

Records the given absolute datapoint.

Parameters

float|int $amount observed amount:

iterable<non-empty-string, string|bool|float|int|array|null> $attributes: attributes of the data point

2 methods override ObserverInterface::observe()
MultiObserver::observe in vendor/open-telemetry/sdk/Metrics/MetricRegistry/MultiObserver.php
Records the given absolute datapoint.
NoopObserver::observe in vendor/open-telemetry/sdk/Metrics/MetricRegistry/NoopObserver.php
Records the given absolute datapoint.

File

vendor/open-telemetry/api/Metrics/ObserverInterface.php, line 17

Class

ObserverInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function observe(float|int $amount, iterable $attributes = []) : void;
RSS feed
Powered by Drupal