Documentation
¶
Index ¶
- func AddEvent(ctx context.Context, name string, attrs ...attribute.KeyValue)
- func InitTracer(cfg Config) (*sdktrace.TracerProvider, error)
- func RecordError(ctx context.Context, err error)
- func StartSpan(ctx context.Context, name string, attrs ...attribute.KeyValue) (context.Context, trace.Span)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTracer ¶
func InitTracer(cfg Config) (*sdktrace.TracerProvider, error)
InitTracer initializes OpenTelemetry tracer with OTLP exporter
func RecordError ¶
RecordError records an error in the current span
Types ¶
Click to show internal directories.
Click to hide internal directories.