RequestIdFilter

class RequestIdFilter : Filter

A Filter that decorates the logging context MDC with a unique RequestId for the executing request. If a request is already available (eg, set by AWS Lambda in serverless mode), it will leave that in place and not replace it. In either case, the response HTTP headers will include an X-Request-Id with the RequestId value in it.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain)
Link copied to clipboard
open override fun init(filterConfig: FilterConfig?)