You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configure Logback with AsyncAppender and logstash-logback-encoder for structured JSON log output. Apply structured logging across all layers: Controller, Service, Repository.
Every log entry must include standardized fields: customerId, requestId, timestamp, layer, durationMs, endpoint, queryParams, eventType, environment.
The correlation ID must survive the @Async boundary — propagate via AsyncConfig's TaskDecorator, following the same pattern as CustomerContext.
Description
Configure Logback with
AsyncAppenderandlogstash-logback-encoderfor structured JSON log output. Apply structured logging across all layers: Controller, Service, Repository.Every log entry must include standardized fields:
customerId,requestId,timestamp,layer,durationMs,endpoint,queryParams,eventType,environment.The correlation ID must survive the
@Asyncboundary — propagate viaAsyncConfig'sTaskDecorator, following the same pattern asCustomerContext.Parent epic: #35048
Acceptance Criteria
AsyncAppender+logstash-logback-encodercustomerId,requestId,timestamp,layer,durationMs,endpoint,queryParams,eventType,environment@Asyncboundary viaAsyncConfigTaskDecoratorAdditional Context
issue-34849-Add-dotCMS-Analytics-Proxy-Endpoint-for-/v1/analytics/-to-dot-ca-event-manager