- add opentelemetry based tracing
- export traces via grpc to a tracing backend
- disable tracing by default since Jaeger
is not part of the default ONAP
deployment via OOM
Issue-ID: POLICY-5531
Change-Id: Idf382932fa279981fd912fa63417bba92904f16b
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
*.ipr
*.iws
**/*.log
+.vscode/
<artifactId>micrometer-registry-prometheus</artifactId>
<scope>runtime</scope>
</dependency>
+ <dependency>
+ <groupId>io.micrometer</groupId>
+ <artifactId>micrometer-tracing-bridge-otel</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>io.opentelemetry</groupId>
+ <artifactId>opentelemetry-exporter-otlp</artifactId>
+ <scope>runtime</scope>
+ </dependency>
<dependency>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-core</artifactId>
path-mapping:
-metrics: plain-metrics
-prometheus: metrics
+ tracing:
+ enabled: ${TRACING_ENABLED:false}
+ sampling:
+ probability: ${TRACING_SAMPLING_PROBABILITY:1.0}
+ otlp:
+ tracing:
+ endpoint: ${TRACING_ENDPOINT:http://jaeger-collector.istio-config}:${TRACING_OTLP_PORT:4317}
server:
servlet:
application-display-name: test-mvc
+
+management:
+ tracing:
+ enabled: false
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
implicit-strategy: org.onap.policy.common.spring.utils.CustomImplicitNamingStrategy
- open-in-view: false
\ No newline at end of file
+ open-in-view: false
+
+management:
+ tracing:
+ enabled: false