Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[GH-1340] Logging added to source ns #475
[GH-1340] Logging added to source ns #475
Changes from 2 commits
ee15805
6351760
861dd60
1073e38
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
What's trace logging?
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.
TL;DR - In Log4j, 2 levels below
INFO
, providing finer-grained information compared toDEBUG
.Log4j's log level hierarchy includes the following:
But @rfricke-asymmetrik just pinged me to say that Log4j will be going away completely in his work, and with that we'll also see a change in available log levels. We will lose
TRACE
but gainNOTICE
:My recommendation there will be to audit the categorization of existing Log4j
TRACE, DEBUG, INFO
logs to determine the new appropriate level.For background why I downgraded this two levels: latest development has us spinning up transactions more frequently rather than passing around existing transactions, so the volume of these logs obscured useful information without adding value. I stopped short of removing completely.
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.
Ah - @rfricke-asymmetrik maybe we can restore trace? That now seems useful. Sorry - I know I asked you to do that.
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.
Also I completely agree this information isn't very helpful. Downgrading was the right decision. Maybe we can make reading environment variables traces too!?
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.
Jinx :) can do.
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.
I actually don't mind trace going away as long as we commit to thoughtfully recategorizing existing logs at or below
INFO
. Stackdriver's distinction betweenINFO
andNOTICE
is more instructive compared to "relatively how noisy do you want everything to be" hahaThere 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.
Trace is not an option provided by Google Logging. So even if we were to have a trace macro in the log namespace, it would just reference a different severity level like NOTICE or DEBUG.
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.
Right! I mean, I'm happy with DEBUG being noisy because we'd want a detailed record of what's going on when we turn that on. I can see the value of an additional level of verbosity. I don't really care what it's called though - trace, verbose, notice, susan, etc.
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.
@rfricke-asymmetrik let's use NOTICE then :)
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.
That being said, there is a Trace field that can be added to the json log. So you can associate logs with a specific trace resource id from the Google Trace API.