summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/MetricExporter/NoopMetricExporter.php
blob: 0cac12fae745e595a035afbd8393642388e8f20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Metrics\MetricExporter;

use OpenTelemetry\SDK\Metrics\MetricExporterInterface;

class NoopMetricExporter implements MetricExporterInterface
{
    /**
     * @inheritDoc
     */
    public function export(iterable $batch): bool
    {
        return true;
    }

    public function shutdown(): bool
    {
        return true;
    }
}