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

Breadcrumb

  1. Drupal Core 11.1.x

MultiRegistryRegistration.php

Namespace

OpenTelemetry\SDK\Metrics\MetricRegistration

File

vendor/open-telemetry/sdk/Metrics/MetricRegistration/MultiRegistryRegistration.php

View source
<?php

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

use OpenTelemetry\SDK\Metrics\MetricMetadataInterface;
use OpenTelemetry\SDK\Metrics\MetricRegistrationInterface;
use OpenTelemetry\SDK\Metrics\MetricSourceProviderInterface;
use OpenTelemetry\SDK\Metrics\MetricSourceRegistryInterface;
use OpenTelemetry\SDK\Metrics\StalenessHandlerInterface;

/**
 * @internal
 */
final class MultiRegistryRegistration implements MetricRegistrationInterface {
    
    /**
     * @param iterable<MetricSourceRegistryInterface> $registries
     */
    public function __construct(iterable $registries, StalenessHandlerInterface $stalenessHandler) {
    }
    public function register(MetricSourceProviderInterface $provider, MetricMetadataInterface $metadata) : void {
        foreach ($this->registries as $registry) {
            $registry->add($provider, $metadata, $this->stalenessHandler);
        }
    }

}

Classes

Title Deprecated Summary
MultiRegistryRegistration @internal

API Navigation

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