-
Notifications
You must be signed in to change notification settings - Fork 704
Switch gRPC exporters to use official gRPC retry config. Make timeout
encompass retries/backoffs
#4564
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
Open
DylanRussell
wants to merge
17
commits into
open-telemetry:main
Choose a base branch
from
DylanRussell:retry2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Switch gRPC exporters to use official gRPC retry config. Make timeout
encompass retries/backoffs
#4564
Changes from 9 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
478d1f3
Initial commit to add timeout as a parm to export, make retries encom…
DylanRussell ccdd224
Fix lint issues
DylanRussell 5bc8894
Fix a bunch of failing style/lint/spellcheck checks
DylanRussell ba92c5a
Remove timeout param from the export calls.
DylanRussell 29144a1
Fix flaky windows test ?
DylanRussell 838d7d9
Merge branch 'main' into retry2
DylanRussell 66a4ebe
Merge branch 'main' into retry2
DylanRussell 95ccfea
Respond to review comments..
DylanRussell d5ca894
Merge branch 'main' of github.com:DylanRussell/opentelemetry-python i…
DylanRussell 8770e15
Delete exponential backoff code that is now unused
DylanRussell 4c74411
Merge remote-tracking branch 'origin/main' into retry2
DylanRussell f373caa
Add changelog and remove some unused imports..
DylanRussell d1e04e1
fix typo and unit test flaking on windows
DylanRussell f42ecd3
Refactor tests, HTTP exporters a bit
DylanRussell 096b9f8
Merge remote-tracking branch 'origin/main' into retry2
DylanRussell 8673b45
Merge remote-tracking branch 'origin/main' into retry2
DylanRussell 46e15f1
Remove unneeded test reqs
DylanRussell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Does this correctly implement the OTLP spec? https://github.com/open-telemetry/opentelemetry-proto/blob/main/docs/specification.md#failures
I'm wondering about
RetryInfo
and partial errors in particularThere 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.
Didn't realize RetryInfo was part of OTLP spec. gRPC retry policy does not make use of RetryInfo, and it isn't mentioned in https://github.com/grpc/proposal/blob/master/A6-client-retries.md or https://grpc.io/docs/guides/retry/#retry-configuration. My reading of the partial success part is that the status code is still OK in that case, which this does handle correctly (by not retrying).
So you think we should remove this then ? I feel it's nice to let the gRPC library handle this stuff instead of hand rolling our own code.. If gRPC changes something around retries I'm assuming they'd update their own retry handling code and we wouldn't have to worry about it.
The gFC (https://github.com/grpc/proposal/blob/master/A6-client-retries.md) also mentions how the retryPolicy can be used for hedging and respect server pushback, but neither of those appear to be implemented yet