summaryrefslogtreecommitdiffstats
path: root/cps-application
diff options
context:
space:
mode:
authordavid.mcweeney <david.mcweeney@est.tech>2024-04-25 14:37:33 +0100
committerdavid.mcweeney <david.mcweeney@est.tech>2024-05-31 14:43:01 +0100
commit2293486de5c408c2c9c27205f1167747df6e1d42 (patch)
tree6a3a0b3b9240d9fabb66db6f55b61ec9b61e582e /cps-application
parent7cb64300ddd10a9e9f0270a8c4832263e20d8ad3 (diff)
Added OpenTelemetry to CPS
Change-Id: I192fa53e293ea43cdff92ebd44d0382eb290bb76 Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Issue-ID: CPS-2172
Diffstat (limited to 'cps-application')
-rw-r--r--cps-application/pom.xml2
-rw-r--r--cps-application/src/main/resources/application.yml21
2 files changed, 22 insertions, 1 deletions
diff --git a/cps-application/pom.xml b/cps-application/pom.xml
index 6804c7de65..abcb88f4a3 100644
--- a/cps-application/pom.xml
+++ b/cps-application/pom.xml
@@ -75,7 +75,7 @@
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
- <artifactId>micrometer-tracing-bridge-brave</artifactId>
+ <artifactId>micrometer-tracing-bridge-otel</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml
index e724ef4443..9c8c1ecd5f 100644
--- a/cps-application/src/main/resources/application.yml
+++ b/cps-application/src/main/resources/application.yml
@@ -151,8 +151,23 @@ security:
username: ${CPS_USERNAME:cpsuser}
password: ${CPS_PASSWORD:cpsr0cks!}
+cps:
+ tracing:
+ sampler:
+ jaeger_remote:
+ endpoint: ${ONAP_OTEL_SAMPLER_JAEGER_REMOTE_ENDPOINT:http://onap-otel-collector:14250}
+ exporter:
+ endpoint: ${ONAP_OTEL_EXPORTER_ENDPOINT:http://onap-otel-collector:4317}
+ protocol: ${ONAP_OTEL_EXPORTER_PROTOCOL:grpc}
+ enabled: ${ONAP_TRACING_ENABLED:false}
+
# Actuator
management:
+ tracing:
+ propagation:
+ produce: ${ONAP_PROPAGATOR_PRODUCE:[W3C]}
+ sampling:
+ probability: 1.0
endpoints:
web:
exposure:
@@ -214,3 +229,9 @@ hazelcast:
kubernetes:
enabled: ${HAZELCAST_MODE_KUBERNETES_ENABLED:false}
service-name: ${CPS_NCMP_SERVICE_NAME:"cps-and-ncmp-service"}
+
+otel:
+ exporter:
+ otlp:
+ traces:
+ protocol: ${ONAP_OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:grpc} \ No newline at end of file