summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/MetricRegistry/NoopObserver.php
blob: efbd94dac55579f36c7a34a14d264051b5c3ddea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Metrics\MetricRegistry;

use OpenTelemetry\API\Metrics\ObserverInterface;

/**
 * @internal
 */
final class NoopObserver implements ObserverInterface
{
    public function observe($amount, iterable $attributes = []): void
    {
        // no-op
    }
}