Documentation ¶
Index ¶
- Constants
- func InitLogger(c *zlog.Config) (func() error, error)
- func ServerLogInterceptor() echo.MiddlewareFunc
- func ServerRecoveryInterceptor() echo.MiddlewareFunc
- func StreamServerOpentraceInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, ...) (err error)
- func UnaryClientOpentraceInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- func UnaryServerOpentraceInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
Constants ¶
View Source
const (
GRPCStatusCodeKey = attribute.Key("rpc.grpc.status_code")
)
Variables ¶
This section is empty.
Functions ¶
func ServerLogInterceptor ¶
func ServerLogInterceptor() echo.MiddlewareFunc
func ServerRecoveryInterceptor ¶
func ServerRecoveryInterceptor() echo.MiddlewareFunc
UnaryServerRecoveryInterceptor recover
func StreamServerOpentraceInterceptor ¶
func StreamServerOpentraceInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) (err error)
StreamServerRecoveryInterceptor recover
func UnaryClientOpentraceInterceptor ¶
func UnaryClientOpentraceInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
func UnaryServerOpentraceInterceptor ¶
func UnaryServerOpentraceInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
UnaryServerRecoveryInterceptor recover
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.