From c3c2eec967891108459c45786f8e98a85004e678 Mon Sep 17 00:00:00 2001 From: Fiete Ostkamp Date: Wed, 6 Sep 2023 08:32:33 +0200 Subject: Add Micrometer [bff] - add Micrometer dependencies - uses Zipkin as trace protocol, typically for port 9411 - requires changing dependency injection of WebClient.Builder [1] [1] Micrometer is injecting the trace context into the WebClient.Builder bean. To add the ExchangeFilterFunctions for authentication, errorhandling and logging, the existing bean needs to be modified instead of statically creating a new one Issue-ID: PORTALNG-57 Change-Id: I13dd18d297cd56fa2dfbb525723c79f4abb41f87 Signed-off-by: Fiete Ostkamp --- app/src/main/resources/application.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/src') diff --git a/app/src/main/resources/application.yml b/app/src/main/resources/application.yml index 0bbd9e2..87493a0 100644 --- a/app/src/main/resources/application.yml +++ b/app/src/main/resources/application.yml @@ -13,6 +13,13 @@ management: web: exposure: include: "*" + tracing: + enabled: true + sampling: + probability: 1.0 # sample every request + zipkin: + tracing: + endpoint: http://${COLLECTOR_HOST}:${COLLECTOR_PORT}/api/v2/spans spring: application: -- cgit 1.2.3-korg