Added propagation keys to list of whitelisted mdc keys

fixes gh-1135
This commit is contained in:
Marcin Grzejszczak
2018-11-16 09:28:24 +01:00
parent 5ad4ae9d03
commit e166e11f3a
3 changed files with 24 additions and 6 deletions

View File

@@ -452,8 +452,9 @@ Notice that there's no `x-` in front of the header keys.
In order to automatically set the baggage values to Slf4j's MDC, you have to set
the `spring.sleuth.log.slf4j.whitelisted-mdc-keys` property with a list of whitelisted
baggage keys. E.g. `spring.sleuth.log.slf4j.whitelisted-mdc-keys=foo` will set the value of the
`foo` baggage into MDC.
baggage and propagation keys. E.g. `spring.sleuth.log.slf4j.whitelisted-mdc-keys=foo` will set the value of the `foo` baggage into MDC.
IMPORTANT: Remember that adding entries to MDC can drastically decrease the performance of your application!
==== Extracting a Propagated Context