lsergio commented on PR #17389: URL: https://github.com/apache/camel/pull/17389#issuecomment-2708530239
@squakez let me see if I got it correctly.... The developer would implement a listener that would be called for every log eip or log component call in order to set the mdc. If so, the developer should be aware that if getting the MDC data is an expensive operation, it should be cached. Usually with MDC we set the parameters only once per thread. One question: would this approach work for logs generated by any component? Like when a http call fails, and the http component logs the error with the stack trace, having the MDC on those logs as well would be important to have the full understanding of what happened during the transaction. -- 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]
