Skip to content
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

Improve freshness verbosity #60

Merged
merged 2 commits into from
Jun 30, 2022

Conversation

jyates
Copy link
Contributor

@jyates jyates commented Jun 29, 2022

For burrow 404 errors, we avoid dumping the entire stack trace, but instead just log the exception message and move along. This dramatically cuts down log verbosity during normal operations, allowing the operator to see 'real' errors.

For when things get wonky, we need a way to see what the freshness tracker is using to calculate freshness - the current consumer state and the 'next' record against which freshness is calculated. Putting this at DEBUG lets us see what is happening, albeit with high degree of verbosity (most folks should not run at DEBUG normally though, this is just for debugging persistent tracker issues).

Addresses #59

jyates added 2 commits June 29, 2022 11:50
They end up clogging the logs as often due to burrow configs consumers
can be returned but not have any lag information available. This can
cause the logs to be filled with useless stack traces of REST 404 errors
from the burrow lag queries. Instead, we just log the one-line message
containing the Response information - everything that is actually useful
in debugging a 404.
This gives consumers a flag to toggle - turning on DEBUG level logging - that
though it is verbose, will allow them to see what is actually happening
under the hood in the freshness tracker. This can be very useful for debugging
'weird' results from freshness computations.

This also meant turning down the Burrow GET request logging from DEBUG to TRACE
as we really dont need to see the requests in the logs at DEBUG when we are getting
that same response information in ConsumerFreshness (albeit slightly massaged).
@jyates jyates merged commit 6be6c43 into teslamotors:master Jun 30, 2022
@jyates jyates deleted the 59-freshness-verbosity branch June 30, 2022 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants