Documentation
¶
Index ¶
- type Instrumentation
- func (i Instrumentation) CreateTask(ctx context.Context, title string) (ret *example.Task, err error)
- func (i Instrumentation) DeleteTask(ctx context.Context, id int64) (err error)
- func (i Instrumentation) GenerateError(ctx context.Context) (err error)
- func (i Instrumentation) ListTasks(ctx context.Context) (ret []*example.Task, err error)
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 (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)
Click to show internal directories.
Click to hide internal directories.