|
|
|
@ -73,6 +73,9 @@ message AccessLogFilter { |
|
|
|
|
|
|
|
|
|
// Response flag filter. |
|
|
|
|
ResponseFlagFilter response_flag_filter = 9; |
|
|
|
|
|
|
|
|
|
// gRPC status filter. |
|
|
|
|
GrpcStatusFilter grpc_status_filter = 10; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -192,3 +195,34 @@ message ResponseFlagFilter { |
|
|
|
|
] |
|
|
|
|
}]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Filters gRPC requests based on their response status. If a gRPC status is not provided, the |
|
|
|
|
// filter will infer the status from the HTTP status code. |
|
|
|
|
message GrpcStatusFilter { |
|
|
|
|
enum Status { |
|
|
|
|
OK = 0; |
|
|
|
|
CANCELED = 1; |
|
|
|
|
UNKNOWN = 2; |
|
|
|
|
INVALID_ARGUMENT = 3; |
|
|
|
|
DEADLINE_EXCEEDED = 4; |
|
|
|
|
NOT_FOUND = 5; |
|
|
|
|
ALREADY_EXISTS = 6; |
|
|
|
|
PERMISSION_DENIED = 7; |
|
|
|
|
RESOURCE_EXHAUSTED = 8; |
|
|
|
|
FAILED_PRECONDITION = 9; |
|
|
|
|
ABORTED = 10; |
|
|
|
|
OUT_OF_RANGE = 11; |
|
|
|
|
UNIMPLEMENTED = 12; |
|
|
|
|
INTERNAL = 13; |
|
|
|
|
UNAVAILABLE = 14; |
|
|
|
|
DATA_LOSS = 15; |
|
|
|
|
UNAUTHENTICATED = 16; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Logs only responses that have any one of the gRPC statuses in this field. |
|
|
|
|
repeated Status statuses = 1 [(validate.rules).repeated .items.enum.defined_only = true]; |
|
|
|
|
|
|
|
|
|
// If included and set to true, the filter will instead block all responses with a gRPC status or |
|
|
|
|
// inferred gRPC status enumerated in statuses, and allow all other responses. |
|
|
|
|
bool exclude = 2; |
|
|
|
|
} |
|
|
|
|