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

Breadcrumb

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

function GaugeInterface::record

Parameters

float|int $amount current absolute value:

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

ContextInterface|false|null $context execution context:

See also

https://opentelemetry.io/docs/specs/otel/metrics/api/#record-1

1 method overrides GaugeInterface::record()
NoopGauge::record in vendor/open-telemetry/api/Metrics/Noop/NoopGauge.php

File

vendor/open-telemetry/api/Metrics/GaugeInterface.php, line 27

Class

GaugeInterface
A synchronous instrument which can be used to record non-additive values.

Namespace

OpenTelemetry\API\Metrics

Code

public function record(float|int $amount, iterable $attributes = [], ContextInterface|false|null $context = null) : void;

API Navigation

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