Class TracerConfiguration
java.lang.Object
ch.admin.bag.covidcertificate.rest.tracing.TracerConfiguration
@Configuration
@PropertySource("classpath:tracer.properties")
@ConfigurationProperties("jeap.rest.tracing")
@ComponentScan
@ConditionalOnWebApplication
public class TracerConfiguration
extends Object
Configuration for the REST-Tracer
RestRequestTracer-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanattributeWhitelisted(String attributeName) builder()protected booleanbooleanName of the current application, to be added as Header.A list of request-attributes to log.A list of headers that shall not be logged, e.g.A list of headers that must be masked, e.g.inthashCode()booleanheaderBlacklisted(String headerName) booleanheadersToBeMasked(String headerName) booleanvoidsetApplicationName(String applicationName) Name of the current application, to be added as Header.voidsetAttributesWhitelist(List<String> attributesWhitelist) A list of request-attributes to log.voidsetFullResponseDetailsInMessage(boolean fullResponseDetailsInMessage) voidsetHeaderBlacklist(List<String> headerBlacklist) A list of headers that shall not be logged, e.g.voidsetHeaderMasked(List<String> headerMasked) A list of headers that must be masked, e.g.voidsetUriFilterPattern(Pattern uriFilterPattern) toString()
-
Constructor Details
-
TracerConfiguration
public TracerConfiguration()
-
-
Method Details
-
headerBlacklisted
-
headersToBeMasked
-
attributeWhitelisted
-
builder
-
getHeaderBlacklist
A list of headers that shall not be logged, e.g. headers from CF All headers matching any of this prefixes is ignored from logging -
getHeaderMasked
A list of headers that must be masked, e.g. if they contain sensitive information All headers matching any of this prefixes is logged only as *** -
getAttributesWhitelist
A list of request-attributes to log. All attributes matching any of this prefixes are logged -
getApplicationName
Name of the current application, to be added as Header. By default ${spring.application.name} -
getUriFilterPattern
-
isFullResponseDetailsInMessage
public boolean isFullResponseDetailsInMessage() -
setHeaderBlacklist
A list of headers that shall not be logged, e.g. headers from CF All headers matching any of this prefixes is ignored from logging -
setHeaderMasked
A list of headers that must be masked, e.g. if they contain sensitive information All headers matching any of this prefixes is logged only as *** -
setAttributesWhitelist
A list of request-attributes to log. All attributes matching any of this prefixes are logged -
setApplicationName
Name of the current application, to be added as Header. By default ${spring.application.name} -
setUriFilterPattern
-
setFullResponseDetailsInMessage
public void setFullResponseDetailsInMessage(boolean fullResponseDetailsInMessage) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-