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

Breadcrumb

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

function MeterInterface::createObservableUpDownCounter

Creates an `ObservableUpDownCounter`.

Parameters

string $name name of the instrument:

string|null $unit unit of measure:

string|null $description description of the instrument:

array|callable $advisory an optional set of recommendations, or: deprecated: the first callback to report measurements

callable ...$callbacks responsible for reporting measurements:

Return value

ObservableUpDownCounterInterface created instrument

See also

https://github.com/open-telemetry/opentelemetry-specification/blob/main…

3 methods override MeterInterface::createObservableUpDownCounter()
LateBindingMeter::createObservableUpDownCounter in vendor/open-telemetry/api/Metrics/LateBindingMeter.php
Creates an `ObservableUpDownCounter`.
Meter::createObservableUpDownCounter in vendor/open-telemetry/sdk/Metrics/Meter.php
Creates an `ObservableUpDownCounter`.
NoopMeter::createObservableUpDownCounter in vendor/open-telemetry/api/Metrics/Noop/NoopMeter.php
Creates an `ObservableUpDownCounter`.

File

vendor/open-telemetry/api/Metrics/MeterInterface.php, line 174

Class

MeterInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function createObservableUpDownCounter(string $name, ?string $unit = null, ?string $description = null, array|callable $advisory = [], callable ...$callbacks) : ObservableUpDownCounterInterface;

API Navigation

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