Documentation ¶
Overview ¶
Package logging provides gRPC interceptors for access logging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLogInterceptor ¶
func AccessLogInterceptor() grpc.UnaryServerInterceptor
func AccessLogStreamInterceptor ¶
func AccessLogStreamInterceptor() grpc.StreamServerInterceptor
Types ¶
type AccessLogEntity ¶
type AccessLogEntity struct { GRPC *AccessLogGRPCEntity `json:"grpc,omitempty" yaml:"grpc"` StartTime int64 `json:"startTime,omitempty" yaml:"startTime"` EndTime int64 `json:"endTime,omitempty" yaml:"endTime"` Latency int64 `json:"latency,omitempty" yaml:"latency"` TraceID string `json:"traceID,omitempty" yaml:"traceID"` Error error `json:"error,omitempty" yaml:"error"` }
type AccessLogGRPCEntity ¶
Click to show internal directories.
Click to hide internal directories.