@Internal public class ConfigFilterHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigFilterHelper.FilterParams
Class containing results for method/service filter information, such as flag for logging
method/service and payload limits to be used for filtering.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
globalPattern |
static ConfigFilterHelper.FilterParams |
NO_FILTER_PARAMS |
| Modifier and Type | Method and Description |
|---|---|
static ConfigFilterHelper |
factory(ObservabilityConfig config)
Creates and returns helper instance for log filtering.
|
boolean |
isEventToBeLogged(io.grpc.observabilitylog.v1.GrpcLogRecord.EventType event)
Checks if the corresponding event passed needs to be logged as per the user provided
configuration.
|
ConfigFilterHelper.FilterParams |
isMethodToBeLogged(io.grpc.MethodDescriptor<?,?> method)
Checks if the corresponding service/method passed needs to be logged as per the user provided
configuration.
|
public static final ConfigFilterHelper.FilterParams NO_FILTER_PARAMS
public static final String globalPattern
public static ConfigFilterHelper factory(ObservabilityConfig config)
config - processed ObservabilityConfig objectpublic ConfigFilterHelper.FilterParams isMethodToBeLogged(io.grpc.MethodDescriptor<?,?> method)
method - the fully qualified name of the methodpublic boolean isEventToBeLogged(io.grpc.observabilitylog.v1.GrpcLogRecord.EventType event)
All events are logged by default if event_types is not specified or {} in configuration. If event_types is specified as [], no events will be logged. If events types is specified as a non-empty list, only the events specified in the list will be logged.
event - gRPC observability event