Skip to content

Commit

Permalink
Fix logs exporter factory exception message (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgrayston authored Jun 3, 2024
1 parent 39f81a3 commit 600d8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDK/Logs/ExporterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 600d8a5

Please sign in to comment.