-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[exporter/elasticsearch] Optionally log documents causing indexing failures #39205
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
Labels
Comments
/label -needs-triage |
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
andrzej-stencel
pushed a commit
that referenced
this issue
Apr 11, 2025
…cilitate debugging of failed bulk request items (#37943) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Add `telemetry::log_failed_docs_input` and `telemetry::log_failed_docs_input_rate_limit` config to facilitate debugging of failed bulk request items. Additionally, log a warning about potentially exposing sensitive data on any enabled `telemetry` config. This is an improvement over using `telemetry::log_request_body` and trying to find out the bad request causing the error out of all logged requests. <!-- Issue number (e.g. #1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes #39205 <!--Describe what testing was performed and which tests were added.--> #### Testing See comment <!--Describe the documentation added.--> #### Documentation Updated README <!--Please delete paragraphs that you did not use before submitting.-->
akshays-19
pushed a commit
to akshays-19/opentelemetry-collector-contrib
that referenced
this issue
Apr 23, 2025
…cilitate debugging of failed bulk request items (open-telemetry#37943) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Add `telemetry::log_failed_docs_input` and `telemetry::log_failed_docs_input_rate_limit` config to facilitate debugging of failed bulk request items. Additionally, log a warning about potentially exposing sensitive data on any enabled `telemetry` config. This is an improvement over using `telemetry::log_request_body` and trying to find out the bad request causing the error out of all logged requests. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#39205 <!--Describe what testing was performed and which tests were added.--> #### Testing See comment <!--Describe the documentation added.--> #### Documentation Updated README <!--Please delete paragraphs that you did not use before submitting.-->
Fiery-Fenix
pushed a commit
to Fiery-Fenix/opentelemetry-collector-contrib
that referenced
this issue
Apr 24, 2025
…cilitate debugging of failed bulk request items (open-telemetry#37943) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Add `telemetry::log_failed_docs_input` and `telemetry::log_failed_docs_input_rate_limit` config to facilitate debugging of failed bulk request items. Additionally, log a warning about potentially exposing sensitive data on any enabled `telemetry` config. This is an improvement over using `telemetry::log_request_body` and trying to find out the bad request causing the error out of all logged requests. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Fixes open-telemetry#39205 <!--Describe what testing was performed and which tests were added.--> #### Testing See comment <!--Describe the documentation added.--> #### Documentation Updated README <!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
exporter/elasticsearch
Is your feature request related to a problem? Please describe.
Existing config
telemetry::log_request_body
is not very helpful in debugging because it logs all requests. It will require the user to go through MBs of logs and try to figure out the bad request causing the error.This is ideally done before #38763 as the bump will strip out even more debugging info by default.
Describe the solution you'd like
Add an opt-in config option to log failed documents
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: