Add requestID and clientID in cps core logs 15/140715/25
authorrajesh.kumar <rk00747546@techmahindra.com>
Tue, 6 May 2025 10:48:04 +0000 (16:18 +0530)
committerGM001016278 <gourav.malviya@techmahindra.com>
Mon, 1 Sep 2025 13:27:23 +0000 (18:57 +0530)
commitc1aaf8645006814154975d529bdda8003f643694
tree71f9832be316a7e2eea9bd0f13d6e0104c6c35ee
parent0fd779c3ff7e62527375e0cb318e98f892f1bfa6
Add requestID and clientID in cps core logs

- This enhancment is to signicantly improve the traceability and debugging capabilities for specific request flowing through our system.

- Create new class MdcServletFilter.java and added the dofilter to handle Mapped Diagnostic Context setup for capture and link requestID and clientID.

- Added testcases MdcServletFilterSpec.groovy for above changes.

Issue-ID: CPS-2796
Change-Id: I56c34400dc73c71b936a51260efd060505baabdc
Signed-off-by: GM001016278 <gourav.malviya@techmahindra.com>
cps-application/src/main/java/org/onap/cps/logging/MdcServletFilter.java [new file with mode: 0644]
cps-application/src/test/groovy/org/onap/cps/logging/MdcServletFilterSpec.groovy [new file with mode: 0644]
cps-service/src/main/resources/logback-spring.xml