-
Notifications
You must be signed in to change notification settings - Fork 22
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
Proposal for refreshable client configuration #171
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
8eac168
Add generated client refreshables
gcampbell12 6ed15c7
Make runtime URIs reloadable (#146)
gcampbell12 cb23ce5
wip
bmoylan e7967a1
wip
bmoylan 686c1ed
Merge branch 'develop' into bm/refreshable
bmoylan 0cd309b
wip
bmoylan 451ff22
working
bmoylan 74cb218
fix
bmoylan 08f755c
rename
bmoylan 1502238
update
bmoylan a110ce5
refreshables branch
bmoylan cababfa
update
bmoylan eda75a6
start test
bmoylan 54df7b9
Merge branch 'develop' into bm/refreshable
bmoylan 1ad1079
wip
bmoylan c8bbe69
Merge branch 'develop' into bm/refreshable
bmoylan 64b3846
wip
bmoylan 1851025
wip
bmoylan e1f19a2
Merge branch 'develop' into bm/refreshable
bmoylan 53694bb
refreshable
bmoylan cb1820a
cleanup
bmoylan 4ff7270
updates
bmoylan a33ec41
regen
bmoylan 678ddcc
Merge branch 'develop' into bm/refreshable
bmoylan 2b0a148
CR
bmoylan 6d1e2f9
changelog
bmoylan 9e93cde
comment on http2
bmoylan b4c58c7
port over http2 improvement
bmoylan d470c5b
Merge branch 'develop' into bm/refreshable
bmoylan 38414e3
generate
bmoylan a83ce7b
minor cleanup
bmoylan 31ef1f7
panic
bmoylan 5b66960
h2 params
bmoylan 25f8328
Merge branch 'develop' into bm/refreshable
bmoylan e648619
require uris
bmoylan e34b201
update
bmoylan 9d3d5e9
require uris
bmoylan b6596a1
Merge branch 'develop' into bm/refreshable
bmoylan 50d3799
Merge branch 'develop' into bm/refreshable
bmoylan 888f130
Merge branch 'develop' into bm/refreshable
bmoylan c8d4615
Merge branch 'develop' into bm/refreshable
bmoylan a60fd95
comments
bmoylan File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
type: feature | ||
feature: | ||
description: Add NewClientFromRefreshableConfig and handle live-reloading configuration changes. | ||
links: | ||
- https://github.com/palantir/conjure-go-runtime/pull/171 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Looks like this also gets added in the client
Build
method. Should we remove it from there in favor of wiring it up here to ensure it's the last middleware?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.
ping on this question. The `(b *httpclientBuilder) Build) adds the recoveryMiddleware to the transport which is then wired through to here. So I would assume that when we create the copy of the transport it already contains the recovery middleware, along with the metrics/trace middlewares.
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.
Ah sorry, I added some additional comments to explain but there are two so that if the panic is deep enough our loggers benefit from the traceID on the context
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.
Ok that makes sense. Thanks for adding the comment.