Skip to content

Commit 9e92fd5

Browse files
add doc for disabling log opts (#680)
Signed-off-by: Coleen Iona Quadros <[email protected]>
1 parent 3ade00c commit 9e92fd5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

interceptors/logging/options.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,14 @@ func WithTimestampFormat(format string) Option {
208208
}
209209

210210
// WithDisableLoggingFields disables logging of gRPC fields provided.
211+
// The following are the default logging fields:
212+
// - SystemTag[0]
213+
// - ComponentFieldKey
214+
// - ServiceFieldKey
215+
// - MethodFieldKey
216+
// - MethodTypeFieldKey
217+
//
218+
// Usage example - WithDisableLoggingFields(logging.MethodFieldKey, logging.MethodTypeFieldKey)
211219
func WithDisableLoggingFields(disableGrpcLogFields ...string) Option {
212220
return func(o *options) {
213221
o.disableGrpcLogFields = disableGrpcLogFields

0 commit comments

Comments
 (0)