pgotel

package module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-2-Clause Imports: 9 Imported by: 1

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 (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