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

Breadcrumb

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

function MeterProviderInterface::getMeter

Returns a `Meter` for the given instrumentation scope.

Parameters

string $name name of the instrumentation scope:

string|null $version version of the instrumentation scope:

string|null $schemaUrl schema url to record in the emitted telemetry:

iterable<non-empty-string, string|bool|float|int|array|null> $attributes: instrumentation scope attributes

Return value

MeterInterface meter instance for the instrumentation scope

See also

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

4 methods override MeterProviderInterface::getMeter()
LateBindingMeterProvider::getMeter in vendor/open-telemetry/api/Metrics/LateBindingMeterProvider.php
Returns a `Meter` for the given instrumentation scope.
MeterProvider::getMeter in vendor/open-telemetry/sdk/Metrics/MeterProvider.php
Returns a `Meter` for the given instrumentation scope.
NoopMeterProvider::getMeter in vendor/open-telemetry/api/Metrics/Noop/NoopMeterProvider.php
Returns a `Meter` for the given instrumentation scope.
NoopMeterProvider::getMeter in vendor/open-telemetry/sdk/Metrics/NoopMeterProvider.php
Returns a `Meter` for the given instrumentation scope.

File

vendor/open-telemetry/api/Metrics/MeterProviderInterface.php, line 22

Class

MeterProviderInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function getMeter(string $name, ?string $version = null, ?string $schemaUrl = null, iterable $attributes = []) : MeterInterface;

API Navigation

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