From cdd7ad020e165fe680703b6d3319b908b682fb7a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 20 Oct 2023 17:12:29 +0300 Subject: jaeger-client -> opentelemetry --- .../open-telemetry/sdk/Logs/LoggerSharedState.php | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 vendor/open-telemetry/sdk/Logs/LoggerSharedState.php (limited to 'vendor/open-telemetry/sdk/Logs/LoggerSharedState.php') diff --git a/vendor/open-telemetry/sdk/Logs/LoggerSharedState.php b/vendor/open-telemetry/sdk/Logs/LoggerSharedState.php new file mode 100644 index 000000000..aeeb45518 --- /dev/null +++ b/vendor/open-telemetry/sdk/Logs/LoggerSharedState.php @@ -0,0 +1,60 @@ +resource = $resource; + $this->limits = $limits; + $this->processor = $processor; + } + public function hasShutdown(): bool + { + return null !== $this->shutdownResult; + } + + public function getResource(): ResourceInfo + { + return $this->resource; + } + + public function getProcessor(): LogRecordProcessorInterface + { + return $this->processor; + } + + public function getLogRecordLimits(): LogRecordLimits + { + return $this->limits; + } + + public function shutdown(?CancellationInterface $cancellation = null): bool + { + if ($this->shutdownResult !== null) { + return $this->shutdownResult; + } + $this->shutdownResult = $this->processor->shutdown($cancellation); + + return $this->shutdownResult; + } + + public function forceFlush(?CancellationInterface $cancellation = null): bool + { + return $this->processor->forceFlush($cancellation); + } +} -- cgit v1.2.3-54-g00ecf