-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
otlpjsonfilereceiver: add a replay_file config option to support heartbeats #31534
otlpjsonfilereceiver: add a replay_file config option to support heartbeats #31534
Conversation
Please add a changelog. Do you mean to use the PollInterval setting to set the replay interval? |
9ffb51b
to
6fb5853
Compare
Yes, |
6fb5853
to
25ac8d8
Compare
25ac8d8
to
d87a14c
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
98ad43d
to
ccf8920
Compare
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.
Nice, I like how this came out. It gives me hope we can move further in the direction of modularizing various aspects of the fileconsumer package.
Code looks good to me generally, just some CI failures to address |
ccf8920
to
5c63328
Compare
This change adds a config option to allow users to replay static telemetry at an interval (poll_interval is the configurable interval). This is useful for some usecases like: - Sending a heartbeat log to a logging backend, as a signal that the logging agent is alive - Sending static metadata as metrics to metrics backend. The metadata can be read using the `otlpjsonfilereceiver` that uses this package and config. Signed-off-by: Ridwan Sharif <[email protected]>
… instead This change does the following: - Removes the replay_file option from the filecononsumer config, in favor of a build option - When no tracking is used, we don't keep track of known or previously polled files. Instead reading only currently polled files that fit the pattern - Adds tests
e486da7
to
9e73ca3
Compare
Signed-off-by: Ridwan Sharif <[email protected]>
9e73ca3
to
7f1a749
Compare
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 @ridwanmsharif!
Description:
This change adds a config option to allow users to replay static telemetry at an interval (poll_interval is the configurable interval).
This is useful for some usecases like:
otlpjsonfilereceiver
that uses this package and config.Link to tracking Issue:
#31533
Testing:
otlpjsonfilereceiver
Documentation: