diff --git a/ldi-orchestrator/ldio-application-instrumentation/pom.xml b/ldi-orchestrator/ldio-application-instrumentation/pom.xml deleted file mode 100644 index 70e166ab7..000000000 --- a/ldi-orchestrator/ldio-application-instrumentation/pom.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - ldi-orchestrator - be.vlaanderen.informatievlaanderen.ldes.ldi - 2.9.0-SNAPSHOT - - 4.0.0 - - ldio-application-instrumentation - - - - io.pyroscope - agent - - - org.springframework - spring-context - compile - - - jakarta.annotation - jakarta.annotation-api - compile - - - - - ${project.artifactId} - - - org.apache.maven.plugins - maven-assembly-plugin - - - - - \ No newline at end of file diff --git a/ldi-orchestrator/ldio-application-instrumentation/src/main/java/be/vlaanderen/informatievlaanderen/ldes/ldio/instrumentation/PyroscopeInitialiser.java b/ldi-orchestrator/ldio-application-instrumentation/src/main/java/be/vlaanderen/informatievlaanderen/ldes/ldio/instrumentation/PyroscopeInitialiser.java deleted file mode 100644 index 6c900eba0..000000000 --- a/ldi-orchestrator/ldio-application-instrumentation/src/main/java/be/vlaanderen/informatievlaanderen/ldes/ldio/instrumentation/PyroscopeInitialiser.java +++ /dev/null @@ -1,22 +0,0 @@ -package be.vlaanderen.informatievlaanderen.ldes.ldio.instrumentation; - -import io.pyroscope.javaagent.PyroscopeAgent; -import io.pyroscope.javaagent.config.Config; -import jakarta.annotation.PostConstruct; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Component; - -@Component -public class PyroscopeInitialiser { - - @Value("${pyroscope.agent.enabled:false}") - private boolean usePyroscope; - @PostConstruct - public void init() { - if(usePyroscope) { - PyroscopeAgent.start( - Config.build() - ); - } - } -} \ No newline at end of file