/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2023 Nordix Foundation.
+ * Copyright (C) 2023-2024 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package org.onap.policy.clamp.acm.participant.kserve.handler;
import io.kubernetes.client.openapi.ApiException;
+import io.opentelemetry.context.Context;
import jakarta.validation.Validation;
import jakarta.validation.ValidationException;
import java.io.IOException;
private static final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
- private ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
+ private ExecutorService executor = Context.taskWrapping(
+ Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()));
private final ParticipantIntermediaryApi intermediaryApi;
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2023 Nordix Foundation.
+ * Copyright (C) 2023-2024 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package org.onap.policy.clamp.acm.participant.intermediary.handler;
+import io.opentelemetry.context.Context;
import java.io.Closeable;
import java.io.IOException;
import java.util.HashMap;
private final Map<UUID, Future> executionMap = new ConcurrentHashMap<>();
- private final ExecutorService executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
+ private final ExecutorService executor =
+ Context.taskWrapping(Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()));
/**
* Handle an update on a automation composition element.
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-tracing-bridge-otel</artifactId>
- <version>1.1.3</version>
+ <version>1.1.8</version>
</dependency>
<dependency>
<groupId>io.opentelemetry</groupId>
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2021-2023 Nordix Foundation.
+ * Copyright (C) 2021-2024 Nordix Foundation.
* Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
package org.onap.policy.clamp.acm.runtime.commissioning;
+import io.opentelemetry.context.Context;
import jakarta.ws.rs.core.Response.Status;
import java.util.HashSet;
import java.util.UUID;
private final ParticipantPrimePublisher participantPrimePublisher;
private final AcRuntimeParameterGroup acRuntimeParameterGroup;
- private final ExecutorService executor = Executors.newFixedThreadPool(1);
+ private final ExecutorService executor = Context.taskWrapping(Executors.newFixedThreadPool(1));
private CommissioningResponse createCommissioningResponse(UUID compositionId,
ToscaServiceTemplate serviceTemplate) {
package org.onap.policy.clamp.acm.runtime.supervision;
import io.micrometer.core.annotation.Timed;
+import io.opentelemetry.context.Context;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
private final AcElementPropertiesPublisher acElementPropertiesPublisher;
private final AutomationCompositionMigrationPublisher acCompositionMigrationPublisher;
- private final ExecutorService executor = Executors.newFixedThreadPool(1);
+ private final ExecutorService executor = Context.taskWrapping(Executors.newFixedThreadPool(1));
/**
* Handle Deploy an AutomationComposition instance.