blob: 7028052e1e20d274c607f2b7409eb96ab12b314e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Logs\Processor;
use OpenTelemetry\Context\ContextInterface;
use OpenTelemetry\SDK\Common\Future\CancellationInterface;
use OpenTelemetry\SDK\Logs\LogRecordProcessorInterface;
use OpenTelemetry\SDK\Logs\ReadWriteLogRecord;
class NoopLogRecordProcessor implements LogRecordProcessorInterface
{
public static function getInstance(): self
{
static $instance;
return $instance ??= new self();
}
/**
* @codeCoverageIgnore
*/
public function onEmit(ReadWriteLogRecord $record, ?ContextInterface $context = null): void
{
}
public function shutdown(?CancellationInterface $cancellation = null): bool
{
return true;
}
public function forceFlush(?CancellationInterface $cancellation = null): bool
{
return true;
}
}
|