-
Notifications
You must be signed in to change notification settings - Fork 171
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(zipkin-transport-http): configurable retry #485
feat(zipkin-transport-http): configurable retry #485
Conversation
Hi @petermetz thanks for this great addition. In terms of the code it looks good to me tho we had a discussion about a similar issue and we went for this path (suggested by @adriancole):
Hence my question would be, does it make sense to allow people to plug https://github.com/jonbern/fetch-retry instead of writing our own? |
Defaults to an exponential backoff with retrying always and forever. All options are configurable through the constructor of the HttpLogger class. Goal: Do not lose traces if there was an intermittent network connectivity issue in a browser environment for example. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
27385e0
to
dd53cc2
Compare
@jcchavezs Makes a lot of sense, thank you for the feedback! I swapped out the home grown retry logic with the library from your comment. |
Also: missing parameter documentation added Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@jcchavezs Also made it fully pluggable here: 027b5f8 |
@petermetz thanks a lot for this great improvement. The only things that bothers me a lot is that HttpLogger accepts ad-hoc options for fetch-retry, I don't think it is its responsibility and also couples us with fetch-retry, also I think it becomes cumbersome as it gives the feeling that you could just pass the retry arguments and it will work with regular fetch. Hence I opened a PR in |
@jcchavezs Got it, makes sense. Let's see how that PR plays out then, I can keep this open in the meantime and update this one accordingly based on what happens to jonbern/fetch-retry#39 |
@petermetz I think now we can use
https://github.com/jonbern/fetch-retry/releases/tag/3.1.0. this will make
the code much simpler and I think it is a good idea to add some
documentation around the option of plugin a fetch client.
…On Mon, 17 Feb 2020, 03:19 Peter Somogyvari, ***@***.***> wrote:
@jcchavezs <https://github.com/jcchavezs> Got it, makes sense. Let's see
how that PR plays out then, I can keep this open in the meantime and update
this one accordingly based on what happens to jonbern/fetch-retry#39
<jonbern/fetch-retry#39>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#485?email_source=notifications&email_token=AAXOYAWJKOGJO372Q5QOTRTRDHXZTA5CNFSM4KSWR7NKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL43K2A#issuecomment-586790248>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXOYAWMPDADYWJXLJ7OJK3RDHXZTANCNFSM4KSWR7NA>
.
|
Based on the feedback from @jcchavezs here openzipkin#485 (comment) Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Added test to check if the constructor parameter does as it is intended. Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@jcchavezs Upgraded to 3.1.0 |
…t and makes the fetch-retry a custom example.
Thanks for the great work @petermetz. I really appreciate your patience and enthusiasm. I changed the PR to use the default |
Hi openzipkin!
A new version of the package zipkin-transport-http (0.19.3-alpha.1) was
published at 2020-02-24T11:02:46.339Z from
34.66.200.49. The shasum of this package was
edf8df0c24dfc23decc6567c65a3314d6599016d.
If you have questions or security concerns, you can reply to this message or
email support@npmjs.com.
npm loves you.
|
Defaults to an exponential backoff with retrying always and forever.
All options are configurable through the constructor of the
HttpLogger class.
Goal: Do not lose traces if there was an intermittent network
connectivity issue in a browser environment for example.
Signed-off-by: Peter Somogyvari peter.somogyvari@accenture.com