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

Breadcrumb

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

function MeterInterface::createCounter

Creates a `Counter`.

Parameters

string $name name of the instrument:

?string $unit unit of measure:

?string $description description of the instrument:

array $advisory an optional set of recommendations:

Return value

CounterInterface created instrument

See also

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

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

File

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

Class

MeterInterface

Namespace

OpenTelemetry\API\Metrics

Code

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

API Navigation

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