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
Graphite: Add error information to graphite queries tracing #55249
Graphite: Add error information to graphite queries tracing #55249
Conversation
This commit extends graphite QueryData() instrumentation to include in the traces information about possible errors. I've added an attribute about the graphite response code as well as records for errors if there are any.
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/33627 |
This looks good to me! @itsmylife @kylebrandt Can one of y'all take a look at this when you've got a minute? |
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
@gtk-grafana @jesusvazquez @kylebrandt should we backport this to |
It might be nice to backport if this is meant to debug existing issues on running grafana instances. |
This is the main reason why we're improving the tracing in this PR but I'm not sure they are Grafana issues yet. However it is great to have information in the traces about what graphite responses as well as tracing the error if any. How can this be backported? Also I'm not sure how your milestones work so I need a bit of help there. |
I set the milestone as |
This commit extends graphite QueryData() instrumentation to include in the traces information about possible errors. I've added an attribute about the graphite response code as well as records for errors if there are any. (cherry picked from commit cb99b94)
This commit extends graphite QueryData() instrumentation to include in the traces information about possible errors. I've added an attribute about the graphite response code as well as records for errors if there are any. (cherry picked from commit cb99b94) Co-authored-by: Jesus Vazquez <jesusvazquez@users.noreply.github.com>
What this PR does / why we need it:
This PR extends graphite QueryData() instrumentation to include in the traces information about possible errors.
The reason why I added this information to the traces is that we're seeing some alerts failing in Grafana with no data / value and we don't know the reason behind it. Because of this we'd like to see in the traces that graphite's response or parsing it is not the issue.