CPS NCMP: Add state tags to cps.ncmp.lcm.events.publish metrics 03/138403/3
authorsourabh_sourabh <sourabh.sourabh@est.tech>
Mon, 8 Jul 2024 16:54:11 +0000 (17:54 +0100)
committerSourabh Sourabh <sourabh.sourabh@est.tech>
Tue, 16 Jul 2024 11:45:09 +0000 (11:45 +0000)
commit05da8915b0a4454f3f014ea724156645d374d9dc
tree9a14a5d004f6cf5f718886c21f7f33dfe1dd3964
parentac58e919008c4449b389d3681a6f8aa216cb5f8f
CPS NCMP: Add state tags to cps.ncmp.lcm.events.publish metrics

- Added cm handle state into micrometer Timer as an extra tags while capturing total time taken to publish a LCM events for publishLcmEvent method.

Issue-ID: CPS-2123
Change-Id: I6357c628496700fee7448dbc381a7e0e62d8b540
Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventsService.java
cps-ncmp-service/src/test/groovy/org/onap/cps/ncmp/impl/inventory/sync/lcm/LcmEventsServiceSpec.groovy