manuel-hegner opened a new issue, #22123:
URL: https://github.com/apache/beam/issues/22123
### What would you like to happen?
Since the Dataflow documentation suggests to use Slf4j for logging it would
only make sense that Dataflow would also log the `org.slf4j.MDC` key value
pairs into the JSON logging object.
This could look something like this:
```java
Map<String, String> mdc = MDC.getCopyOfContextMap();
if(!mdc.isEmpty() {
generator.writeFieldName("mdc");
generator.writeStartObject();
for(Entry<String, String> entry : mdc.entrySet()) {
generator.writeStringField(entry.getKey(), entry.getValue());
}
generator.writeEndObject();
}
```
If this is an accepted feature I would be willing to work on this.
### Issue Priority
Priority: 2
### Issue Component
Component: runner-dataflow
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]