summaryrefslogtreecommitdiffstats
path: root/cps-ri
diff options
context:
space:
mode:
authorSourabh Sourabh <sourabh.sourabh@est.tech>2024-11-19 15:59:25 +0000
committerGerrit Code Review <gerrit@onap.org>2024-11-19 15:59:25 +0000
commit2e2ed18c1575e7787e067e02d8488d751c00d90d (patch)
tree5762965d386a0704646a89ed530bcf1e8419f968 /cps-ri
parent7cb249f6ad63516a098a9f644b85b74683e77e93 (diff)
parenta0d4bc39ec35534688047772797f42a38780bc29 (diff)
Merge "Test to highlight ModuleSetTag Inefficiencies"
Diffstat (limited to 'cps-ri')
-rwxr-xr-xcps-ri/src/main/java/org/onap/cps/ri/CpsModulePersistenceServiceImpl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/cps-ri/src/main/java/org/onap/cps/ri/CpsModulePersistenceServiceImpl.java b/cps-ri/src/main/java/org/onap/cps/ri/CpsModulePersistenceServiceImpl.java
index 6f491ba3b7..3368aee148 100755
--- a/cps-ri/src/main/java/org/onap/cps/ri/CpsModulePersistenceServiceImpl.java
+++ b/cps-ri/src/main/java/org/onap/cps/ri/CpsModulePersistenceServiceImpl.java
@@ -27,6 +27,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableSet;
+import io.micrometer.core.annotation.Timed;
import jakarta.transaction.Transactional;
import java.io.ByteArrayInputStream;
import java.io.IOException;
@@ -186,6 +187,8 @@ public class CpsModulePersistenceServiceImpl implements CpsModulePersistenceServ
// can occur in case of specific concurrent requests.
@Retryable(retryFor = DuplicatedYangResourceException.class, maxAttempts = 5, backoff =
@Backoff(random = true, delay = 200, maxDelay = 2000, multiplier = 2))
+ @Timed(value = "cps.module.persistence.schemaset.store",
+ description = "Time taken to store a schemaset (list of module references")
public void storeSchemaSetFromModules(final String dataspaceName, final String schemaSetName,
final Map<String, String> newModuleNameToContentMap,
final Collection<ModuleReference> allModuleReferences) {