Skip to main content
Version: 57.2.0

getCurrentRequestContextAttributes

getCurrentRequestContextAttributes(overrides?): RequestContextAttributes

Serializes the active correlation context into HTTP header attributes (keyed by REQUEST_CONTEXT_ATTRIBUTE_NAMES) so it can be propagated on outbound requests to other services, keeping the same requestId/traceId across service boundaries.

Parameters

overrides?

Partial<RequestContext> = {}

Returns

RequestContextAttributes