-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add retry configuration to storage exporter #7132
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
Add retry configuration to storage exporter #7132
Conversation
Signed-off-by: Lokesh Kumar <[email protected]>
| - `max_interval`: 30s | ||
| - `max_elapsed_time`: 5m | ||
|
|
||
| #### Explanation of Retry Parameters |
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.
why do we need this? Isn't it already documented in OTEL? I don't want to duplicate the docs, just refer to upstream docs.
| type Config struct { | ||
| TraceStorage string `mapstructure:"trace_storage" valid:"required"` | ||
| QueueConfig exporterhelper.QueueBatchConfig `mapstructure:"queue" valid:"optional"` | ||
| RetryConfig configretry.BackOffConfig `mapstructure:"retry_on_failure" valid:"optional"` |
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.
I am not sure what valid:"optional" means in the context of having an actual struct by value.
| func createDefaultConfig() component.Config { | ||
| return &Config{} | ||
| return &Config{ | ||
| RetryConfig: configretry.BackOffConfig{ |
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.
we don't want this enabled by default.
|
|
||
| defaultCfg := createDefaultConfig().(*Config) | ||
|
|
||
| if !cfg.RetryConfig.Enabled { |
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.
we didn't have anything similar for other configs, why do we need it for this one?
Signed-off-by: Lokesh Kumar <[email protected]>
|
@yurishkuro addressed comments here 4d62811 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7132 +/- ##
==========================================
- Coverage 96.20% 96.19% -0.02%
==========================================
Files 358 358
Lines 21596 21600 +4
==========================================
+ Hits 20777 20778 +1
- Misses 613 615 +2
- Partials 206 207 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6f20915
Which problem is this PR solving?
Description of the changes
How was this change tested?
storageexporterpackage.Checklist
jaeger:make lint testjaeger-ui:npm run lintandnpm run test