-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
(exporterhelper) Configuration package for timeout sender #11387
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11387 +/- ##
==========================================
- Coverage 91.92% 91.91% -0.01%
==========================================
Files 430 431 +1
Lines 20311 20325 +14
==========================================
+ Hits 18671 18682 +11
- Misses 1267 1269 +2
- Partials 373 374 +1 ☔ View full report in Codecov by Sentry. |
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.
Any chance we can add a few test cases for Validate
to appease codecov?
…:jmacd/opentelemetry-collector into jmacd/timeout_config
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.
LGTM. Noting that the contrib test failure is unrelated to this change (TestFilterMetricProcessorTelemetry
).
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.
The code looks OK to me.
Is this package configuration that will apply to components outside of exporters?
- If yes, the documentation for this package could be made more generic to clarify how it applies to different component types.
- If not I would expect it to live in the exporter helper instead of its own config package.
I took a brief look through other uses of timeout through the core codebase and I'm not sure if the Policy concept would apply in other places.
I was following Say you're sure, and I'll move it to /exporter/exporterhelper! |
…tor into jmacd/timeout_config
I am not sure. |
The "config" package is a more generic, why would I experiment in a more generic package than in a more specific. You are incorrect about |
@jmacd the configuration in TimeoutConfig is used in both exporters and receivers in contrib, can the first step to make it more usable generally be to move the existing functionality into then the follow up PR can be to add |
If a processor -- say batch processor -- wants to respect timeouts, won't it need a configuration? I will submit an RFC. |
Description
Adds a timeout configuration struct, consisting of the current setting (
timeout
) and a proposed-new settingshort_timeout_policy
with three defined values: "sustain" (default), "ignore" (override), and "abort" (fail fast).Link to tracking issue
Part of #11183.
Testing
See #11385 for integration with
exporterhelper
for more testing.Documentation
See #11385 for integration with
exporterhelper
for proposed documentation.