Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(msg string, args ...interface{}) Info(args ...interface{}) Infof(msg string, args ...interface{}) Infow(msg string, keysAndValues ...interface{}) Warn(args ...interface{}) Warnf(msg string, args ...interface{}) Error(args ...interface{}) Errorf(msg string, args ...interface{}) Errorw(msg string, keysAndValues ...interface{}) DPanic(args ...interface{}) DPanicf(msg string, args ...interface{}) Fatal(args ...interface{}) Fatalf(msg string, args ...interface{}) }
type Span ¶
type Span interface { End(enableStackTrace ...bool) SetAttributes(attrs map[string]interface{}) SetAttribute(key, value string) AddEvent(name string, attrs ...map[string]interface{}) SetName(name string) SetStatus(code uint32, description string) RecordError(err error, attrs ...map[string]interface{}) }
type Tracer ¶
type Tracer interface { // Configure initializes the tracer with the necessary settings. Configure() error // Span creates and starts a new span with the given name and attributes. Span(ctx context.Context, name string) (context.Context, Span) // Shutdown gracefully shuts down the tracer provider and flushes spans. Shutdown(ctx context.Context) error }
Tracer defines the methods required for tracing operations.
Click to show internal directories.
Click to hide internal directories.