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
  • Constructor Details

    • TracerConfiguration

      public TracerConfiguration()
  • Method Details

    • headerBlacklisted

      public boolean headerBlacklisted(String headerName)
    • headersToBeMasked

      public boolean headersToBeMasked(String headerName)
    • attributeWhitelisted

      public boolean attributeWhitelisted(String attributeName)
    • builder

    • getHeaderBlacklist

      public List<String> 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

      public List<String> 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

      public List<String> getAttributesWhitelist()
      A list of request-attributes to log. All attributes matching any of this prefixes are logged
    • getApplicationName

      public String getApplicationName()
      Name of the current application, to be added as Header. By default ${spring.application.name}
    • getUriFilterPattern

      public Pattern getUriFilterPattern()
    • isFullResponseDetailsInMessage

      public boolean isFullResponseDetailsInMessage()
    • setHeaderBlacklist

      public void setHeaderBlacklist(List<String> headerBlacklist)
      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

      public void setHeaderMasked(List<String> headerMasked)
      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

      public void setAttributesWhitelist(List<String> attributesWhitelist)
      A list of request-attributes to log. All attributes matching any of this prefixes are logged
    • setApplicationName

      public void setApplicationName(String applicationName)
      Name of the current application, to be added as Header. By default ${spring.application.name}
    • setUriFilterPattern

      public void setUriFilterPattern(Pattern uriFilterPattern)
    • setFullResponseDetailsInMessage

      public void setFullResponseDetailsInMessage(boolean fullResponseDetailsInMessage)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object