From 600d8a5f534af1bc2a7766ae3b2484da0e5109ca Mon Sep 17 00:00:00 2001 From: David Grayston <1229335+davidgrayston@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:14:46 +0100 Subject: [PATCH] Fix logs exporter factory exception message (#1318) --- src/SDK/Logs/ExporterFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDK/Logs/ExporterFactory.php b/src/SDK/Logs/ExporterFactory.php index 2a560ae95..ecd4af7ff 100644 --- a/src/SDK/Logs/ExporterFactory.php +++ b/src/SDK/Logs/ExporterFactory.php @@ -16,7 +16,7 @@ public function create(): LogRecordExporterInterface { $exporters = Configuration::getList(Variables::OTEL_LOGS_EXPORTER); if (1 !== count($exporters)) { - throw new InvalidArgumentException(sprintf('Configuration %s requires exactly 1 exporter', Variables::OTEL_TRACES_EXPORTER)); + throw new InvalidArgumentException(sprintf('Configuration %s requires exactly 1 exporter', Variables::OTEL_LOGS_EXPORTER)); } $exporter = $exporters[0]; if ($exporter === 'none') {