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)
Click to show internal directories.
Click to hide internal directories.