Class ObservabilityConfig.LogFilter

  • Enclosing interface:
    ObservabilityConfig

    @ThreadSafe
    public static class ObservabilityConfig.LogFilter
    extends java.lang.Object
    POJO for representing a filter used in configuration.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean excludePattern
      Boolean to indicate if services and methods matching pattern needs to be excluded.
      int headerBytes
      Number of bytes of header to log.
      boolean matchAll
      Boolean to indicate all services and methods.
      int messageBytes
      Number of bytes of message to log.
      java.util.Set<java.lang.String> methods  
      java.util.Set<java.lang.String> services
      Set of services.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogFilter​(java.util.Set<java.lang.String> services, java.util.Set<java.lang.String> serviceMethods, boolean matchAll, int headerBytes, int messageBytes, boolean excludePattern)
      Object used to represent filter used in configuration.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • services

        public final java.util.Set<java.lang.String> services
        Set of services.
      • methods

        public final java.util.Set<java.lang.String> methods
      • matchAll

        public final boolean matchAll
        Boolean to indicate all services and methods.
      • headerBytes

        public final int headerBytes
        Number of bytes of header to log.
      • messageBytes

        public final int messageBytes
        Number of bytes of message to log.
      • excludePattern

        public final boolean excludePattern
        Boolean to indicate if services and methods matching pattern needs to be excluded.
    • Constructor Detail

      • LogFilter

        public LogFilter​(java.util.Set<java.lang.String> services,
                         java.util.Set<java.lang.String> serviceMethods,
                         boolean matchAll,
                         int headerBytes,
                         int messageBytes,
                         boolean excludePattern)
        Object used to represent filter used in configuration.
        Parameters:
        services - Set of services derived from pattern
        serviceMethods - Set of fullMethodNames derived from pattern
        matchAll - If true, match all services and methods
        headerBytes - Total number of bytes of header to log
        messageBytes - Total number of bytes of message to log
        excludePattern - If true, services and methods matching pattern be excluded