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

Breadcrumb

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

function ObservableCounterInterface::observe

Parameters

callable(ObserverInterface): void $callback function responsible for: reporting the measurements (as absolute values)

Return value

ObservableCallbackInterface token to detach callback

1 method overrides ObservableCounterInterface::observe()
NoopObservableCounter::observe in vendor/open-telemetry/api/Metrics/Noop/NoopObservableCounter.php

File

vendor/open-telemetry/api/Metrics/ObservableCounterInterface.php, line 15

Class

ObservableCounterInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function observe(callable $callback) : ObservableCallbackInterface;

API Navigation

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