Documentation
¶
Index ¶
- type OTTraceLogger
- func (l *OTTraceLogger) Debug(ctx context.Context, format string, args ...any) (context.Context, error)
- func (l *OTTraceLogger) Error(ctx context.Context, format string, args ...any) (context.Context, error)
- func (l *OTTraceLogger) Info(ctx context.Context, format string, args ...any) (context.Context, error)
- func (l *OTTraceLogger) Logf(ctx context.Context, opts backend.LogOptions, format string, args ...any) (context.Context, error)
- func (l *OTTraceLogger) Warn(ctx context.Context, format string, args ...any) (context.Context, error)
- type StdoutMetricCollector
- type StdoutTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OTTraceLogger ¶
Implementation of the backend.Logger interface for backend.Tracer This logger converts each log statement into an event which is added to a current span. Note: This logger should only be used in conjunction with a backend.Tracer. Using this logger without using a backend.Tracer would result in no-op logging behavior. Note: This implementation will not be the same as a future OpenTelemetry.Logger which is in beta-testing for select languages (not including Go).
func NewOTTraceLogger ¶
func NewOTTraceLogger(ctx context.Context) (*OTTraceLogger, error)
Returns a new OTTraceLogger object
func (*OTTraceLogger) Debug ¶
func (l *OTTraceLogger) Debug(ctx context.Context, format string, args ...any) (context.Context, error)
Implements backend.Logger
func (*OTTraceLogger) Error ¶
func (l *OTTraceLogger) Error(ctx context.Context, format string, args ...any) (context.Context, error)
Implements backend.Logger
func (*OTTraceLogger) Info ¶
func (l *OTTraceLogger) Info(ctx context.Context, format string, args ...any) (context.Context, error)
Implements backend.Logger
type StdoutMetricCollector ¶
type StdoutMetricCollector struct {
// contains filtered or unexported fields
}
func NewStdoutMetricCollector ¶
func NewStdoutMetricCollector(ctx context.Context) (*StdoutMetricCollector, error)
func (*StdoutMetricCollector) GetMetricProvider ¶
func (s *StdoutMetricCollector) GetMetricProvider(ctx context.Context) (metric.MeterProvider, error)
type StdoutTracer ¶
type StdoutTracer struct {
// contains filtered or unexported fields
}
func NewStdoutTracer ¶
func NewStdoutTracer(ctx context.Context, addr string) (*StdoutTracer, error)
func (*StdoutTracer) GetTracerProvider ¶
func (t *StdoutTracer) GetTracerProvider(ctx context.Context) (trace.TracerProvider, error)
Click to show internal directories.
Click to hide internal directories.