We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 006f66d commit 07e0ab8Copy full SHA for 07e0ab8
reporter/http/http.go
@@ -189,6 +189,12 @@ func RequestCallback(rc RequestCallbackFn) ReporterOption {
189
return func(r *httpReporter) { r.reqCallback = rc }
190
}
191
192
+// Logger sets the logger used to report errors in the collection
193
+// process.
194
+func Logger(l *log.Logger) ReporterOption {
195
+ return func(r *httpReporter) { r.logger = l }
196
+}
197
+
198
// NewReporter returns a new HTTP Reporter.
199
// url should be the endpoint to send the spans to, e.g.
200
// http://localhost:9411/api/v2/spans
0 commit comments