Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 921 Bytes

http_mdc_header.md

File metadata and controls

28 lines (23 loc) · 921 Bytes

Add HTTP headers to MDC

Properties

Property Description Default
logger.http.header.enabled filter enabled? true
logger.http.header.path filter path /**
logger.http.header.order order for Ordered ServerFilterPhase.FIRST.before()
logger.http.header.prefix prefix to MDC key ``
logger.http.header.names http header names to add to MDC []

Examples

Configuration for b3-propagation:

logger:
  http:
    header:
      prefix: header.
      names:
        - x-request-id
        - x-b3-traceId
        - x-b3-parentspanid
        - x-b3-spanid
        - x-b3-sampled