Documentation
¶
Index ¶
- func QueryAndSetTracingId(ctx context.Context, name string)
- func StreamLoggerInterceptor(lgr logger.Loggable) grpc.StreamServerInterceptor
- func StreamTracingInterceptor(lgr logger.Loggable) grpc.StreamServerInterceptor
- func UnaryLoggerInterceptor(lgr logger.Loggable) grpc.UnaryServerInterceptor
- func UnaryTracingInterceptor(lgr logger.Loggable) grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryAndSetTracingId ¶
QueryAndSetTracingId -- проверяет наличие уникального ид запроса в контексте, и устанавливает при отсутствии
func StreamLoggerInterceptor ¶
func StreamLoggerInterceptor(lgr logger.Loggable) grpc.StreamServerInterceptor
StreamLoggerInterceptor returns a new unary server interceptors that adds zap.Logger to the context.
func StreamTracingInterceptor ¶
func StreamTracingInterceptor(lgr logger.Loggable) grpc.StreamServerInterceptor
StreamTracingInterceptor -- отслеживает наличие уникального идента запроса и создает его в случае отсутствия
func UnaryLoggerInterceptor ¶
func UnaryLoggerInterceptor(lgr logger.Loggable) grpc.UnaryServerInterceptor
UnaryLoggerInterceptor returns a new unary server interceptors that adds zap.Logger to the context.
func UnaryTracingInterceptor ¶
func UnaryTracingInterceptor(lgr logger.Loggable) grpc.UnaryServerInterceptor
UnaryTracingInterceptor -- отслеживает наличие уникального идента запроса и создает его в случае отсутствия
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.