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

Breadcrumb

  1. Drupal Core 11.1.x

ObserverInterface.php

Namespace

OpenTelemetry\API\Metrics

File

vendor/open-telemetry/api/Metrics/ObserverInterface.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\API\Metrics;

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;

}

Interfaces

Title Deprecated Summary
ObserverInterface
RSS feed
Powered by Drupal