otel

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnavailable = errors.New("otel build tag not enabled")

ErrUnavailable indicates OpenTelemetry support is disabled.

Functions

This section is empty.

Types

type Tracer

type Tracer struct{}

Tracer is a no-op tracer when OpenTelemetry is disabled.

func NewTracer

func NewTracer(name string) (*Tracer, error)

NewTracer returns ErrUnavailable when the otel build tag is not enabled.

func (*Tracer) Start

func (t *Tracer) Start(ctx *bebo.Context) (context.Context, func(status int, err error))

Start implements the middleware tracer interface as a no-op.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL