otel

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware struct {
	quark.BaseMiddleware
}

Middleware implements quark.Middleware to provide native OpenTelemetry tracing.

func New

func New() *Middleware

New creates a new OTel middleware for Quark. The tracer is resolved lazily from the global TracerProvider at query-execution time, so the middleware always uses whatever provider is currently registered.

func (*Middleware) WrapExec

func (m *Middleware) WrapExec(next quark.ExecFunc) quark.ExecFunc

func (*Middleware) WrapQuery

func (m *Middleware) WrapQuery(next quark.QueryFunc) quark.QueryFunc

func (*Middleware) WrapQueryRow

func (m *Middleware) WrapQueryRow(next quark.QueryRowFunc) quark.QueryRowFunc

Jump to

Keyboard shortcuts

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