CommandRequestHeaderPropagator

Propagator that copies request-related headers like user agent and remote IP.

This propagator helps maintain client request context across message boundaries, useful for auditing and security purposes.

Parameters

enabled

Whether it propagates. The Spring starter sets it from ENABLED_KEY for the propagators it injects into the runtime; MessagePropagators.DEFAULT (the ServiceLoader instance) always propagates. Since 9.3.0 nothing reads ENABLED_KEY as a JVM system property outside Spring.

Constructors

Link copied to clipboard
constructor(enabled: Boolean = true)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun propagate(header: Header, upstream: Message<*, *>)

Propagates user agent and remote IP information if enabled.