Open grassehh opened 1 year ago
Hello, as I understand and as explained in Micrometer Tracing, correlation fields should be logged in the tracing context (i.e SFL4J MDC).
The issue is that using brave implementation requires them to be defined as remote fields in order to be logged in the MDC.
issues/brave
You will see that only the standard traceId and spanId baggages are logged. If you edit the application.yaml file and uncomment the following configuration:
traceId
spanId
application.yaml
remote-fields: - myBaggageFilter - myBaggageController
The custom baggages myBaggageFilterand myBaggageController are now correctly logged.
myBaggageFilter
myBaggageController
The custom baggages myBaggageFilterand myBaggageController should be logged without being declared as remote fields.
Thanks for the help.
Describe the Bug
Hello, as I understand and as explained in Micrometer Tracing, correlation fields should be logged in the tracing context (i.e SFL4J MDC).
The issue is that using brave implementation requires them to be defined as remote fields in order to be logged in the MDC.
Steps to Reproduce
issues/brave
branchYou will see that only the standard
traceId
andspanId
baggages are logged. If you edit theapplication.yaml
file and uncomment the following configuration:The custom baggages
myBaggageFilter
andmyBaggageController
are now correctly logged.Expected Behaviour
The custom baggages
myBaggageFilter
andmyBaggageController
should be logged without being declared as remote fields.Thanks for the help.