Skip to content

Commit 45b7750

Browse files
authored
Remove STDOUT output in Newrelic exporter (#404)
1 parent 04f84d7 commit 45b7750

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

contrib/Newrelic/Exporter.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ public function export(iterable $spans): int
146146
return Trace\Exporter::FAILED_RETRYABLE;
147147
}
148148

149-
$statusCode = $response->getStatusCode();
150-
$reason = $response->getReasonPhrase();
151-
152-
// Useful information for when logging is implemented.
153-
/*
154-
* echo "\nsendRequest response = " . $statusCode . "\n";
155-
* echo "\nsendRequest response = " . $reason . "\n";
156-
*/
157149
if ($response->getStatusCode() >= 400 && $response->getStatusCode() < 500) {
158150
return Trace\Exporter::FAILED_NOT_RETRYABLE;
159151
}

contrib/ZipkinToNewrelic/Exporter.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,6 @@ public function export(iterable $spans): int
135135
return Trace\Exporter::FAILED_RETRYABLE;
136136
}
137137

138-
$statusCode = $response->getStatusCode();
139-
$reason = $response->getReasonPhrase();
140-
echo "\nsendRequest response = " . $statusCode . "\n";
141-
echo "\nsendRequest response = " . $reason . "\n";
142-
143138
if ($response->getStatusCode() >= 400 && $response->getStatusCode() < 500) {
144139
return Trace\Exporter::FAILED_NOT_RETRYABLE;
145140
}

0 commit comments

Comments
 (0)