Documentation
¶
Index ¶
- func SetSpanInContext(ctx context.Context, span Span) context.Context
- type Logger
- func (logger *Logger) Debugf(ctx context.Context, fmt string, args ...interface{})
- func (logger *Logger) Error(ctx context.Context, msg string)
- func (logger *Logger) Errorf(ctx context.Context, fmt string, args ...interface{})
- func (logger *Logger) Info(ctx context.Context, msg string)
- func (logger *Logger) Infof(ctx context.Context, fmt string, args ...interface{})
- func (logger *Logger) Warning(ctx context.Context, msg string)
- func (logger *Logger) Warningf(ctx context.Context, fmt string, args ...interface{})
- func (logger *Logger) WithLogger(ctx context.Context) context.Context
- type Span
- type TraceMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶ added in v1.1.0
type Logger struct {
// contains filtered or unexported fields
}
func MustGetLogger ¶
type Span ¶ added in v1.1.0
type Span interface { GetSpanID() string GetTraceID() string SetStatus(err error) SetAttributes(attributes map[string]interface{}) AnnotateSpan(name string, attributes map[string]interface{}) Inject(ctx context.Context) TraceMap IsValid() bool End() }
func GetOtelSpanFromContext ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.