Documentation
¶
Index ¶
- func ErrorAttributes(err error) []attribute.KeyValue
- func HTTPMiddleware(component string) fiber.Handler
- func NewPGXTracer() pgx.QueryTracer
- func NewTracerProvider(ctx context.Context, cfg Config, options ...providerOption) (*sdktrace.TracerProvider, io.Closer, error)
- func RecordError(span trace.Span, err error)
- func Setup(ctx context.Context, cfg Config, options ...providerOption) (io.Closer, error)
- func StartMethodSpan(ctx context.Context, method MethodSpan) (context.Context, trace.Span)
- func WithSpanProcessor(processor sdktrace.SpanProcessor) providerOption
- type Config
- type MethodSpan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorAttributes ¶
ErrorAttributes returns safe error classification attributes for spans.
func HTTPMiddleware ¶
HTTPMiddleware starts or continues a server span for a Fiber request.
func NewPGXTracer ¶
func NewPGXTracer() pgx.QueryTracer
NewPGXTracer returns a pgx tracer that records database dependency spans.
func NewTracerProvider ¶
func NewTracerProvider( ctx context.Context, cfg Config, options ...providerOption, ) (*sdktrace.TracerProvider, io.Closer, error)
NewTracerProvider creates an OpenTelemetry tracer provider.
func RecordError ¶
RecordError records a sanitized error classification on span.
func StartMethodSpan ¶
StartMethodSpan starts an internal span for a decorated method boundary.
func WithSpanProcessor ¶
func WithSpanProcessor(processor sdktrace.SpanProcessor) providerOption
WithSpanProcessor adds a span processor to the tracer provider.
Types ¶
Click to show internal directories.
Click to hide internal directories.