Package io.grpc.gcp.observability
Class ObservabilityConfig.LogFilter
- java.lang.Object
-
- io.grpc.gcp.observability.ObservabilityConfig.LogFilter
-
- Enclosing interface:
- ObservabilityConfig
@ThreadSafe public static class ObservabilityConfig.LogFilter extends java.lang.ObjectPOJO for representing a filter used in configuration.
-
-
Field Summary
Fields Modifier and Type Field Description booleanexcludePatternBoolean to indicate if services and methods matching pattern needs to be excluded.intheaderBytesNumber of bytes of header to log.booleanmatchAllBoolean to indicate all services and methods.intmessageBytesNumber of bytes of message to log.java.util.Set<java.lang.String>methodsjava.util.Set<java.lang.String>servicesSet 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.
-
-
-
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 patternserviceMethods- Set of fullMethodNames derived from patternmatchAll- If true, match all services and methodsheaderBytes- Total number of bytes of header to logmessageBytes- Total number of bytes of message to logexcludePattern- If true, services and methods matching pattern be excluded
-
-