Skip to content

Commit 07e0ab8

Browse files
forrest-uabasvanbeek
authored andcommitted
Add Logger reporter option to http reporter (#100)
1 parent 006f66d commit 07e0ab8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

reporter/http/http.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ func RequestCallback(rc RequestCallbackFn) ReporterOption {
189189
return func(r *httpReporter) { r.reqCallback = rc }
190190
}
191191

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+
192198
// NewReporter returns a new HTTP Reporter.
193199
// url should be the endpoint to send the spans to, e.g.
194200
// http://localhost:9411/api/v2/spans

0 commit comments

Comments
 (0)