001/* 002 * Copyright 2012-2018 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.boot.actuate.autoconfigure.trace.http; 018 019import java.util.HashSet; 020import java.util.Set; 021 022import org.springframework.boot.actuate.trace.http.Include; 023import org.springframework.boot.context.properties.ConfigurationProperties; 024 025/** 026 * Configuration properties for HTTP tracing. 027 * 028 * @author Wallace Wadge 029 * @author Phillip Webb 030 * @author Venil Noronha 031 * @author Madhura Bhave 032 * @author Stephane Nicoll 033 * @since 2.0.0 034 */ 035@ConfigurationProperties(prefix = "management.trace.http") 036public class HttpTraceProperties { 037 038 /** 039 * Items to be included in the trace. Defaults to request headers (excluding 040 * Authorization but including Cookie), response headers (including Set-Cookie), and 041 * time taken. 042 */ 043 private Set<Include> include = new HashSet<>(Include.defaultIncludes()); 044 045 public Set<Include> getInclude() { 046 return this.include; 047 } 048 049 public void setInclude(Set<Include> include) { 050 this.include = include; 051 } 052 053}