-
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
[receiver/sqlquery] initial_delay
setting is not supported for logs
#29671
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I think since logs are considered As @astencel-sumo pointed out, the I think the best option is to rely on the existing scraper helper functionality, but code owners (or anyone interested on resolving this) will have to confirm this is possible for logs in this receiver. Adding the |
The scraperhelper package currently only supports metrics, but perhaps it could be extended to also support logs? 🤔
💯 agree 👍 |
My bad, I didn't realize it only supports metrics. In that case, since it's a single (and pretty simple) option, it's not a big deal to implement it in this receiver. If there's some other existing library that we can use it'd be great, but by no means required. 👍 |
This tiny enhancement should help with investigating issues when logs are not being collected. It has already helped me uncover a small issue with the receiver: - #29671
…elemetry#29672) This tiny enhancement should help with investigating issues when logs are not being collected. It has already helped me uncover a small issue with the receiver: - open-telemetry#29671
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
receiver/sqlquery
What happened?
Description
The SQL Query receiver supports the
initial_delay
property (it's not documented in the README), but it only works for metrics and not for logs.Steps to Reproduce
Run the collector with the below config and observe collector's logs.
Expected Result
Metrics and logs are first scraped after 5 seconds, then at 10 second intervals.
Actual Result
Metrics collection behavior is correct: first scraped after 5 seconds, then at 10 second intervals.
Logs collection behavior is incorrect: the
initial_delay
of5s
is ignored. Logs are first scraped after 10 seconds and then at 10 second intervals.Collector version
0.90.1
Environment information
Any
OpenTelemetry Collector configuration
Log output
Additional context
This is due to the
initial_delay
being a part of the https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver/scraperhelper that the metrics implementation uses internally. To fix this, The logs receiver implementation would need to explicitly add support forinitial_delay
, just as it currently supportscollection_interval
.The text was updated successfully, but these errors were encountered: