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

Breadcrumb

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

interface ObserverInterface

Hierarchy

  • interface \OpenTelemetry\API\Metrics\ObserverInterface

Expanded class hierarchy of ObserverInterface

All classes that implement ObserverInterface

5 files declare their use of ObserverInterface
BatchLogRecordProcessor.php in vendor/open-telemetry/sdk/Logs/Processor/BatchLogRecordProcessor.php
BatchSpanProcessor.php in vendor/open-telemetry/sdk/Trace/SpanProcessor/BatchSpanProcessor.php
MultiObserver.php in vendor/open-telemetry/sdk/Metrics/MetricRegistry/MultiObserver.php
NoopObserver.php in vendor/open-telemetry/sdk/Metrics/MetricRegistry/NoopObserver.php
ObservableInstrumentTrait.php in vendor/open-telemetry/sdk/Metrics/ObservableInstrumentTrait.php

File

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

Namespace

OpenTelemetry\API\Metrics
View source
interface ObserverInterface {
    
    /**
     * Records the given absolute datapoint.
     *
     * @param float|int $amount observed amount
     * @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
     *        attributes of the data point
     */
    public function observe(float|int $amount, iterable $attributes = []) : void;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
ObserverInterface::observe public function Records the given absolute datapoint. 2

API Navigation

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