Flag for NORTHBOUND tracing in a1pms 06/139906/3
authorlapentafd <francesco.lapenta@est.tech>
Wed, 15 Jan 2025 12:03:03 +0000 (12:03 +0000)
committerFrancesco Davide Lapenta <francesco.lapenta@est.tech>
Wed, 15 Jan 2025 15:11:39 +0000 (15:11 +0000)
- Spring Web Flux tracing is done automatically by the
library opentelemetry-spring-webflux-5.3
- Added a flag to disable tracing when this web client
is used, that is when we route to northbound interface.

Issue-ID: CCSDK-4010
Change-Id: Id7426ffd775df44c0e4a780e31cb912b45adc8c5
Signed-off-by: lapentafd <francesco.lapenta@est.tech>
a1-policy-management/config/application.yaml

index e1f3b5c..e3e9583 100644 (file)
@@ -3,7 +3,7 @@
 # ONAP : ccsdk oran
 # ================================================================================
 # Copyright (C) 2020-2023 Nordix Foundation. All rights reserved.
-# Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved.
+# Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -103,6 +103,9 @@ otel:
   sdk:
     disabled: ${ONAP_SDK_DISABLED:true}
     south: ${ONAP_TRACING_SOUTHBOUND:true}
+  instrumentation:
+    spring-webflux:
+      enabled: ${ONAP_TRACING_NORTHBOUND:true}
   tracing:
     sampler:
       jaeger_remote: