pgotel

package module
v10.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: BSD-2-Clause Imports: 9 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TracingHook

type TracingHook struct{}

TracingHook is a pg.QueryHook that adds OpenTelemetry instrumentation.

func NewTracingHook

func NewTracingHook() *TracingHook

func (*TracingHook) AfterQuery

func (h *TracingHook) AfterQuery(ctx context.Context, evt *pg.QueryEvent) error

func (*TracingHook) BeforeQuery

func (h *TracingHook) BeforeQuery(ctx context.Context, _ *pg.QueryEvent) (context.Context, error)

Jump to

Keyboard shortcuts

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