From 884fd92f1320d17daebb772297da03fb2cfa59b8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 1 Oct 2024 16:00:34 +0300 Subject: drop opentelemetry --- .../sdk/Logs/PsrSeverityMapperInterface.php | 50 ---------------------- 1 file changed, 50 deletions(-) delete mode 100644 vendor/open-telemetry/sdk/Logs/PsrSeverityMapperInterface.php (limited to 'vendor/open-telemetry/sdk/Logs/PsrSeverityMapperInterface.php') diff --git a/vendor/open-telemetry/sdk/Logs/PsrSeverityMapperInterface.php b/vendor/open-telemetry/sdk/Logs/PsrSeverityMapperInterface.php deleted file mode 100644 index 3bb288c56..000000000 --- a/vendor/open-telemetry/sdk/Logs/PsrSeverityMapperInterface.php +++ /dev/null @@ -1,50 +0,0 @@ - 7, - // Interesting events. Examples: User logs in, SQL logs. - PsrLogLevel::INFO => 6, - // Normal but significant events. - PsrLogLevel::NOTICE => 5, - // Exceptional occurrences that are not errors. Examples: Use of deprecated APIs, poor use of an API, - // undesirable things that are not necessarily wrong. - PsrLogLevel::WARNING => 4, - // Runtime errors that do not require immediate action but should typically be logged and monitored. - PsrLogLevel::ERROR => 3, - // Critical conditions. Example: Application component unavailable, unexpected exception. - PsrLogLevel::CRITICAL => 2, - // Action must be taken immediately. Example: Entire website down, database unavailable, etc. - // This should trigger the alerts and wake you up. - PsrLogLevel::ALERT => 1, - // Emergency: system is unusable. - PsrLogLevel::EMERGENCY => 0, - ]; - - /** - * Mappig of OpenTelemetry SeverityNumber to PsrLogLevel. - * @see: https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7.0/specification/logs/data-model.md#field-severitynumber - */ - public const SEVERITY_NUMBER = [ - PsrLogLevel::DEBUG => 5, - PsrLogLevel::INFO => 9, - PsrLogLevel::NOTICE => 10, - PsrLogLevel::WARNING => 13, - PsrLogLevel::ERROR => 17, - PsrLogLevel::CRITICAL => 18, - PsrLogLevel::ALERT => 21, - PsrLogLevel::EMERGENCY => 22, - ]; -} -- cgit v1.2.3-54-g00ecf