diff options
Diffstat (limited to 'vendor/open-telemetry/sdk/Logs/LogRecordProcessorInterface.php')
-rw-r--r-- | vendor/open-telemetry/sdk/Logs/LogRecordProcessorInterface.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vendor/open-telemetry/sdk/Logs/LogRecordProcessorInterface.php b/vendor/open-telemetry/sdk/Logs/LogRecordProcessorInterface.php new file mode 100644 index 000000000..1977d48fd --- /dev/null +++ b/vendor/open-telemetry/sdk/Logs/LogRecordProcessorInterface.php @@ -0,0 +1,15 @@ +<?php + +declare(strict_types=1); + +namespace OpenTelemetry\SDK\Logs; + +use OpenTelemetry\Context\ContextInterface; +use OpenTelemetry\SDK\Common\Future\CancellationInterface; + +interface LogRecordProcessorInterface +{ + public function onEmit(ReadWriteLogRecord $record, ?ContextInterface $context = null): void; + public function shutdown(?CancellationInterface $cancellation = null): bool; + public function forceFlush(?CancellationInterface $cancellation = null): bool; +} |