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
sourceThread MDC value not set by typed actors #28153
Comments
Or it's built in now with Slf4J, so it should be |
I think
PS. I was wrong about that all Akka mdc keys are prefixed with |
So the typed docs should say |
When using Typed it's always a mix, since our internal logging is going over the eventBus. I guess we could add |
Similar with |
The missing |
I'm not clear on how to configure the logger to handle the diff but the timestamp and source thread is already in the log events (and is correct) for typed. Is it possible to fallback from one expression to another if the first yields empty string? Could we provide some adapter that adds the mdc keys from the logger events or the other way around? |
I found a somewhat ugly method to workaround the issue (with logback PatternLayout) Unfortunately, the simple (defaultValue based) solution does not work:
The problem with this approach is that the The only approach I got working was a nested regex-replace: This way the Unfortunately, this is not very readable anymore. |
Could we provide some intermediate event transformation component for logbook that uses the event values to add them as the old mdc attributes before the actual layout is applied? |
We decided to add the |
Mentioned by the docs but we don't seem to set it?
The text was updated successfully, but these errors were encountered: