Skip to content

Commit

Permalink
Remove STDOUT output in Newrelic exporter (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalex authored Aug 27, 2021
1 parent 04f84d7 commit 45b7750
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
8 changes: 0 additions & 8 deletions contrib/Newrelic/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,6 @@ public function export(iterable $spans): int
return Trace\Exporter::FAILED_RETRYABLE;
}

$statusCode = $response->getStatusCode();
$reason = $response->getReasonPhrase();

// Useful information for when logging is implemented.
/*
* echo "\nsendRequest response = " . $statusCode . "\n";
* echo "\nsendRequest response = " . $reason . "\n";
*/
if ($response->getStatusCode() >= 400 && $response->getStatusCode() < 500) {
return Trace\Exporter::FAILED_NOT_RETRYABLE;
}
Expand Down
5 changes: 0 additions & 5 deletions contrib/ZipkinToNewrelic/Exporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ public function export(iterable $spans): int
return Trace\Exporter::FAILED_RETRYABLE;
}

$statusCode = $response->getStatusCode();
$reason = $response->getReasonPhrase();
echo "\nsendRequest response = " . $statusCode . "\n";
echo "\nsendRequest response = " . $reason . "\n";

if ($response->getStatusCode() >= 400 && $response->getStatusCode() < 500) {
return Trace\Exporter::FAILED_NOT_RETRYABLE;
}
Expand Down

0 comments on commit 45b7750

Please sign in to comment.