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
HTTP API Logger logs request path and method too #1644
HTTP API Logger logs request path and method too #1644
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1644 +/- ##
==========================================
+ Coverage 98.46% 98.46% +<.01%
==========================================
Files 59 59
Lines 2862 2864 +2
==========================================
+ Hits 2818 2820 +2
Misses 44 44 |
Hi @ketanbhatt - Thanks! Please see my comment on your other pull request regarding our Contributor Licensing Agreement (CLA): #1643 (comment) Dev Team: Please don't merge this PR yet; we have to clear the CLA process first. |
@TimDaub I assigned you to review this PR because you created the original issue. @ketanbhatt has now agreed to the CLA, so that's not a blocker any more. |
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 tested this. Works great. Thanks @ketanbhatt!
Will add @sbellem for having this reviewed.
@sbellem anything pending on my side? |
@ketanbhatt - This week, @sbellem is away on vacation. Sorry for the delay. |
@ttmc @TimDaub actually I had a doubt. Earlier the format for the errors was: For some people, who are parsing these logs for indexing/monitoring, won't this be a breaking change? Do you think this is a valid concern? If yes, should we mention in docs somewhere? Thanks |
@ketanbhatt very good point. How about we append |
I am not sure if that would be completely foolproof as well. From what I know, appending it would still mean that a lot of custom patterns will stop recognising the logs, given how they work (example: http://grokdebug.herokuapp.com/patterns#) I have the following ideas:
What do you think @TimDaub |
Interesting questions! I'm thinking of workarounds on how to merge this and not break things. Behavior in
|
Valid points, @ketanbhatt. As an example, a current log message looks like: I wouldn't mind changing it to something like
or bunch the message in quotes and delimit using commas:
Log analysis usually becomes easy with I am not a big fan of custom hyphens/separators with spaces around them which will need custom parsing logic. I like nicely tokenize-able strings which won't be an overhead to process. @TimDaub I wouldn't worry too much about breaking any existing log analytics as I do not think anyone else currently parses the log (IPDB parses logs, but that won't break because of the above changes). |
@vrde good suggestion. Although I would like if there was a separation between the message and the new info we will add (as a future developer who starts consuming these logs with no knowledge about how this format came to be, I will just think that this isn't a good way to output logs). @krish7919 I was thinking so too, that the change will not break a lot of things, and nothing too critical. But quoting just the message or using I think to keep all your above points in mind, and to not go too far away from the current format (by changing the format to use double quotes etc.), we can simply append
My only qualm with this is that the This has all the benefits of the previous method (of just appending) and also keeps the log format more consistent. Sorry for the long comment, just thought I should also document the thought process for future reference. Let me know what you guys think and I will quickly make the desired changes. Thanks |
This PR generated a really interesting question. Let's wait a bit to see how the team reacts to my changes for the |
The problem with using custom delimiters (like I will approve of any of the solution described above as long as we know the pros and cons and are not flummoxed by unexpected behavior during log parsing (might be of interest to @ttmc when configuring Azure log analytics for IPDB). |
@vrde and @krish7919 --- I haven't been following this PR very closely. Is merging it still blocked by the decision about how to handle the changes to the logging message format? |
It isn't. We need to remember that parsing will fail in case we have any more Other than being cognizant of that fact for now, I don't think anything's blocking me from this change. |
@vrde are you okay with merging this pull request? If so, please feel free to merge it. |
Fixes #1546