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

Breadcrumb

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

function InstrumentNameCriteria::accepts

@psalm-suppress ArgumentTypeCoercion

Overrides SelectionCriteriaInterface::accepts

File

vendor/open-telemetry/sdk/Metrics/View/SelectionCriteria/InstrumentNameCriteria.php, line 30

Class

InstrumentNameCriteria

Namespace

OpenTelemetry\SDK\Metrics\View\SelectionCriteria

Code

public function accepts(Instrument $instrument, InstrumentationScopeInterface $instrumentationScope) : bool {
    return (bool) preg_match($this->pattern, $instrument->name);
}
RSS feed
Powered by Drupal