You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/01/04 10:26:38 UTC

[GitHub] [camel-quarkus] jamesnetherton commented on issue #2099: MDC not logging overriden breadcrumbId or custom property

jamesnetherton commented on issue #2099:
URL: https://github.com/apache/camel-quarkus/issues/2099#issuecomment-753892519


   Does your example work in plain Camel without Quarkus? 
   
   `MDCUnitOfWork` handles adding fields to the MDC and it probably runs before you attempt to override `camel.breadcrumbId`.
   
   If you want to override the default behaviour, you can extend `MDCUnitOfWork`. There's an old stackoverflow.com thread that talks about it (might need some adapting for Camel 3.x):
   
   https://stackoverflow.com/questions/29045419/apache-camel-mdc-add-field-from-body
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org