Skip to content

Commit

Permalink
Add Logger reporter option to http reporter (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
forrest-ua authored and basvanbeek committed Dec 19, 2018
1 parent 006f66d commit 07e0ab8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reporter/http/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ func RequestCallback(rc RequestCallbackFn) ReporterOption {
return func(r *httpReporter) { r.reqCallback = rc }
}

// Logger sets the logger used to report errors in the collection
// process.
func Logger(l *log.Logger) ReporterOption {
return func(r *httpReporter) { r.logger = l }
}

// NewReporter returns a new HTTP Reporter.
// url should be the endpoint to send the spans to, e.g.
// http://localhost:9411/api/v2/spans
Expand Down

0 comments on commit 07e0ab8

Please sign in to comment.