-
Notifications
You must be signed in to change notification settings - Fork 2.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
feat (processor/k8sattributes): wait for synced when starting k8sattributes processor. #32622
Conversation
969a63e
to
3ab5327
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@h0cheung Hi there, I was wondering if you have the time to finalize and merge the pull request. Looking forward to your update. Thanks! |
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.
Thanks for your patience!
I have an advice about the two new options start_timeout
and error_when_timeout
.
The reason for this enhancement is to make sure the k8sattributes processor will start consuming the incoming traces or metrics until the initial synchronization are completed,
otherwise, some traces/metrics/logs may be unassociated with k8s metadata.
But I think some users may care more about the start rate of collector than the completeness of the k8s metadata.
So how about we change this two fields to
force_wait_for_cache_synced bool
default is falsewait_for_synced_timeout time.Duration
The users who care more about the completeness could set force_wait_for_cache_synced bool
to true and if the synced is still not completed after timeout wait_for_synced_timeout
, the collector should directly return error instead of running, since the completeness could not be guaranteed.
I agree. What are your thoughts? @TylerHelmuth |
@TylerHelmuth can you see, plz? |
@fatsheep9146 I like that idea. I suggest adjusting naming it |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
remove stale |
Thanks. These two configuration items look simple and clear. I think we can use them. |
@h0cheung Hi, could you take some time to work out the code and merge the pull request? I’d really appreciate your update on this. Thanks a lot |
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.
One minor wording improvement :).
4918900
to
a9e3a60
Compare
767326c
to
73065a6
Compare
@fatsheep9146 @dmitryax could you take a look as well? Otherwise this should be good to go. |
73065a6
to
e32ed7d
Compare
@fatsheep9146 @dmitryax I plan to merge by end of week, please comment if you have objections |
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! Thanks
26a7ef7
to
6db3f20
Compare
Co-authored-by: Christos Markou <[email protected]>
Co-authored-by: Christos Markou <[email protected]>
6db3f20
to
25c4e12
Compare
…ibutes processor. (open-telemetry#32622) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> When starting `k8sattributes` processor, block until an initial synchronization has been completed. This solves open-telemetry#32556 **Link to tracking Issue:** <Issue number if applicable> fix open-telemetry#32556 **Testing:** <Describe what testing was performed and which tests were added.> Tested in a cluster with constant high span traffic, no more spans with unassociated k8s metadata after adding this pr. **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Christos Markou <[email protected]>
…ibutes processor. (open-telemetry#32622) **Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> When starting `k8sattributes` processor, block until an initial synchronization has been completed. This solves open-telemetry#32556 **Link to tracking Issue:** <Issue number if applicable> fix open-telemetry#32556 **Testing:** <Describe what testing was performed and which tests were added.> Tested in a cluster with constant high span traffic, no more spans with unassociated k8s metadata after adding this pr. **Documentation:** <Describe the documentation added.> --------- Co-authored-by: Christos Markou <[email protected]>
Description:
When starting
k8sattributes
processor, block until an initial synchronization has been completed. This solves #32556Link to tracking Issue:
fix #32556
Testing:
Tested in a cluster with constant high span traffic, no more spans with unassociated k8s metadata after adding this pr.
Documentation: