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

Breadcrumb

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

function MeterInterface::createHistogram

Creates a `Histogram`.

Parameters

string $name name of the instrument:

string|null $unit unit of measure:

string|null $description description of the instrument:

array $advisory an optional set of recommendations, e.g.: <code>['ExplicitBucketBoundaries' => [0.25, 0.5, 1, 5]]</code>

Return value

HistogramInterface created instrument

See also

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

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

File

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

Class

MeterInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function createHistogram(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : HistogramInterface;

API Navigation

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