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

Breadcrumb

  1. Drupal Core 11.1.x

MetricWriterInterface.php

Namespace

OpenTelemetry\SDK\Metrics\MetricRegistry

File

vendor/open-telemetry/sdk/Metrics/MetricRegistry/MetricWriterInterface.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\SDK\Metrics\MetricRegistry;

use Closure;
use OpenTelemetry\SDK\Metrics\Instrument;

/**
 * @internal
 */
interface MetricWriterInterface {
    public function record(Instrument $instrument, $value, iterable $attributes = [], $context = null) : void;
    public function registerCallback(Closure $callback, Instrument $instrument, Instrument ...$instruments) : int;
    public function unregisterCallback(int $callbackId) : void;
    public function enabled(Instrument $instrument) : bool;

}

Interfaces

Title Deprecated Summary
MetricWriterInterface @internal

API Navigation

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