GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(logging): add ability to filter MDC labels by codyoss · Pull Request #6430 · googleapis/google-cloud-java Conversation
|
Codecov Report
@@ Coverage Diff @@ ## master #6430 +/- ## ============================================ + Coverage 46.35% 46.61% +0.26% - Complexity 27995 28428 +433 ============================================ Files 2613 2615 +2 Lines 288066 290015 +1949 Branches 33776 34179 +403 ============================================ + Hits 133524 135200 +1676 - Misses 144303 144502 +199 - Partials 10239 10313 +74
Continue to review full report at Codecov.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I thought of a possible behavior breaking change: if a user already added an additional LoggingEventEnhancer, they would now lose the default label setting behavior.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@chingor13 That is a good point. I did document this behavior on the class, but I suppose it is technically breaking. Short of exposing a custom hook that only relates specifically to MDCs I don't know a good way around this. I am open to suggestions. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
What is our compatibility promise for artifacts labeled alpha? The version here is |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
We can break the behavior, but we definitely need to document it in the release notes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I vote we take the breaking behavior and document it in the release notes. I think this implementation will offer more flexibility for the users as the library. Using |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The alpha status is wonky. Some artifacts are alpha, some are beta, and some are GA. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Currently all MDC values are being written as labels in a LogEntry. This is not desirable for everyone. By adding MDCEventEnhancer a user now has the ability to easily filter which MDC entries get converted into labels. To maintain backwards compatability the default implementation is to write all entries as labels. If a user wants to filter these, they just need to extend MDCEventEnhancer, override the filtering, and add the new classpath to their logback.xml. Fixes googleapis#6320
|
@chingor13 Thoughts on this change? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I am going to merge this. Once done I will cherry-pick these changes to goolgeapis/java-logging |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hello! I'm just curious when it's being planned to merge fix to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Currently all MDC values are being written as labels in a LogEntry. This is not desirable for everyone. By adding MDCEventEnhancer a user now has the ability to easily filter which MDC entries get converted into labels. To maintain backwards compatability the default implementation is to write all entries as labels. If a user wants to filter these, they just need to extend MDCEventEnhancer, override the filtering, and add the new classpath to their logback.xml. Fixes #6320
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Add possibility to control MDC values for adding to log message
There was an error while loading. Please reload this page.