aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/resources/application.yml
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-12-12 12:08:19 +0100
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2023-12-12 12:08:19 +0100
commite75aad44364533311e03c865bd00e95540bf5f34 (patch)
tree9dd2ff9bdcddb646bffd1e036f1ffe9cf45624ba /app/src/main/resources/application.yml
parent2caf8fbef7a20cc4e98975b40d21efc073195b77 (diff)
Enrich log messages with further metadata about requests
This includes: - endpoint - execution time - trace id Issue-ID: PORTALNG-70 Change-Id: Ia88bce25c1b29f18e6d36d3460f0c59c3689fd44 Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'app/src/main/resources/application.yml')
-rw-r--r--app/src/main/resources/application.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/resources/application.yml b/app/src/main/resources/application.yml
index ffe174e..75654ef 100644
--- a/app/src/main/resources/application.yml
+++ b/app/src/main/resources/application.yml
@@ -44,4 +44,10 @@ management:
probability: 1.0 # sample every request
zipkin:
tracing:
- endpoint: http://${COLLECTOR_HOST}:${COLLECTOR_PORT}/api/v2/spans \ No newline at end of file
+ endpoint: http://${COLLECTOR_HOST}:${COLLECTOR_PORT}/api/v2/spans
+
+logger:
+ traceIdHeaderName: "X-Request-Id"
+ enabled: true
+ excludePaths:
+ - "/actuator/**" \ No newline at end of file