Documentation ¶
Index ¶
- Constants
- func Debug(ctx context.Context, msg string, fields ...zap.Field)
- func Error(ctx context.Context, msg string, fields ...zap.Field)
- func Fatal(ctx context.Context, msg string, fields ...zap.Field)
- func GetCtxFromGin(c *gin.Context) context.Context
- func GetTraceID(ctx context.Context) string
- func Info(ctx context.Context, msg string, fields ...zap.Field)
- func StreamEntryInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func StreamTraceInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func TraceCtx(ctx context.Context, traceIDs ...string) context.Context
- func TraceMiddleware() gin.HandlerFunc
- func UnaryEntryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func UnaryTraceInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
- func Warn(ctx context.Context, msg string, fields ...zap.Field)
- type TraceKey
Constants ¶
View Source
const GinCtxKey = "__gin_ctx_key__"
Variables ¶
This section is empty.
Functions ¶
func GetTraceID ¶
func StreamEntryInterceptor ¶
func StreamEntryInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
func StreamTraceInterceptor ¶
func StreamTraceInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
func TraceMiddleware ¶
func TraceMiddleware() gin.HandlerFunc
func UnaryEntryInterceptor ¶
func UnaryEntryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func UnaryTraceInterceptor ¶
func UnaryTraceInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.