Documentation ¶
Index ¶
- func CopyContext(ctx context.Context) context.Context
- func FromSpanIDContext(ctx context.Context) (spanID string, ok bool)
- func FromTraceIDContext(ctx context.Context) (traceID string, ok bool)
- func FromUserIDContext(ctx context.Context) (userID string, ok bool)
- func NewSpanIDContext(ctx context.Context, spanID string) context.Context
- func NewTraceIDContext(ctx context.Context, traceID string) context.Context
- func NewUserIDContext(ctx context.Context, userID string) context.Context
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSpanIDContext ¶
FromSpanIDContext ...
func FromTraceIDContext ¶
FromTraceIDContext ...
func FromUserIDContext ¶
FromUserIDContext ...
func NewSpanIDContext ¶
NewSpanIDContext ...
func NewTraceIDContext ¶
NewTraceIDContext ...
Types ¶
type Logger ¶
type Logger interface { // Debugf 测试 Debugf(format string, args ...interface{}) // Debugln 测试 Debugln(args ...interface{}) // Infof 信息 Infof(format string, args ...interface{}) // Infoln 消息 Infoln(args ...interface{}) // Warnf 警告 Warnf(format string, args ...interface{}) // Warnln 警告 Warnln(args ...interface{}) // Warningf 警告 Warningf(format string, args ...interface{}) // Warningln 警告 Warningln(args ...interface{}) // Errorf 错误 Errorf(format string, args ...interface{}) // Errorln 错误 Errorln(args ...interface{}) }
Logger logger
Click to show internal directories.
Click to hide internal directories.