instrumentationdb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instrumentation

type Instrumentation struct {
	// contains filtered or unexported fields
}

Instrumentation layer for example.DB interface.

func New

func New(
	db example.DB,
	tracerProvider trace.TracerProvider,
	meterProvider metric.MeterProvider,
) (*Instrumentation, error)

func (Instrumentation) CreateTask

func (i Instrumentation) CreateTask(ctx context.Context, title string) (ret *example.Task, err error)

func (Instrumentation) DeleteTask

func (i Instrumentation) DeleteTask(ctx context.Context, id int64) (err error)

func (Instrumentation) GenerateError

func (i Instrumentation) GenerateError(ctx context.Context) (err error)

func (Instrumentation) ListTasks

func (i Instrumentation) ListTasks(ctx context.Context) (ret []*example.Task, err error)

Jump to

Keyboard shortcuts

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