Exclude cookie headers by default from HTTP traces

See gh-22829
pull/22898/head
Emily Tsanova 4 years ago committed by Andy Wilkinson
parent 8bcf5186dc
commit 5ff515727d

@ -653,7 +653,6 @@
"defaultValue": [
"request-headers",
"response-headers",
"cookies",
"errors"
]
},

@ -24,6 +24,8 @@ import java.util.Set;
* Include options for HTTP tracing.
*
* @author Wallace Wadge
* @author Emily Tsanova
* @author Joseph Beeton
* @since 2.0.0
*/
public enum Include {
@ -55,6 +57,7 @@ public enum Include {
PRINCIPAL,
/**
*
* Include the remote address.
*/
REMOTE_ADDRESS,
@ -75,7 +78,6 @@ public enum Include {
Set<Include> defaultIncludes = new LinkedHashSet<>();
defaultIncludes.add(Include.REQUEST_HEADERS);
defaultIncludes.add(Include.RESPONSE_HEADERS);
defaultIncludes.add(Include.COOKIE_HEADERS);
defaultIncludes.add(Include.TIME_TAKEN);
DEFAULT_INCLUDES = Collections.unmodifiableSet(defaultIncludes);
}

Loading…
Cancel
Save