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": [ "defaultValue": [
"request-headers", "request-headers",
"response-headers", "response-headers",
"cookies",
"errors" "errors"
] ]
}, },

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

Loading…
Cancel
Save