-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(reporter/http): uses an interface for http client #155
Conversation
b4d33f0
to
86b2068
Compare
…lug other clients.
86b2068
to
32e9ef5
Compare
Looks good to me though I was intending to send a PR with
Maybe exposing the gist as
|
Hi @skaslev, my concern about exposing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
Another idea that comes to mind for the gist is to have the code in the docs/FAQ/examples so users who need retyablehttp will be able to find how to use it with zipkin-go easily.
This change was the only piece I was not sure about but I think it is OK to do this change for two reasons:
Which means that this produces the same effect as a context cancellation. What I am not sure if we should return the
BenchmarkClientTimeoutTimesout-8 100 11147329 ns/op 17279 B/op 119 allocs/op
BenchmarkCtxDeadlineTimesout-8 100 10803295 ns/op 15984 B/op 101 allocs/op
BenchmarkClientTimeoutSuccess-8 5409 219080 ns/op 4462 B/op 59 allocs/op
BenchmarkCtxDeadlineSuccess-8 5875 212182 ns/op 3747 B/op 48 allocs/op So I think this can be merged. Any concern @basvanbeek ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two minor nits otherwise LGTM
3f77ee3
to
5bb8a4b
Compare
Thanks @jcchavezs!!! |
This PR changes the interface for the http client being accepted in the http reporter which allows users to plug other clients (e.g. a client with resiliency patterns implemented) as in https://gist.github.com/jcchavezs/5d615ff7013311bea1555e448c4cce3e.
Questions to be addressed: Should this gist be part of the zipkin http reporter package?
Ping @basvanbeek @skaslev @pramodramdas
Closes #153