From cb38546d8ae80894301e816180c267a9ae393770 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Thu, 23 Mar 2017 15:36:27 -0700 Subject: [PATCH] Document default trace includes Closes gh-8654 --- .../boot/actuate/trace/TraceProperties.java | 2 +- .../asciidoc/production-ready-features.adoc | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/TraceProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/TraceProperties.java index 3c01ac6879..c609426c9a 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/TraceProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/TraceProperties.java @@ -142,7 +142,7 @@ public class TraceProperties { REMOTE_USER, /** - * Include the time taken to service the request. + * Include the time taken to service the request in milliseconds. */ TIME_TAKEN diff --git a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index 44b0f5e7cb..cda90353a8 100644 --- a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -1510,6 +1510,28 @@ and obtain basic information about the last 100 requests: }] ---- +The following are included in the trace by default: + +[cols="1,2"] +|=== +|Name |Description + +|Request Headers +|Headers from the request. + +|Response Headers +|Headers from the response. + +|Cookies +|`Cookie` from request headers and `Set-Cookie` from response headers. + +|Errors +|The error attributes (if any). + +|Time Taken +|The time taken to service the request in milliseconds. +|=== + [[production-ready-custom-tracing]]