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

Breadcrumb

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

function ObservableInstrumentTrait::observe

Parameters

callable(ObserverInterface): void $callback:

File

vendor/open-telemetry/sdk/Metrics/ObservableInstrumentTrait.php, line 42

Class

ObservableInstrumentTrait
@internal

Namespace

OpenTelemetry\SDK\Metrics

Code

public function observe(callable $callback) : ObservableCallbackInterface {
    return AsynchronousInstruments::observe($this->writer, $this->destructors, $callback, [
        $this->instrument,
    ], $this->referenceCounter);
}

API Navigation

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