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') {