Documentation ¶
Index ¶
Constants ¶
View Source
const ( OperationFieldName = "operation" OperationTimeFieldName = "operation_time_ms" )
Field names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueryHook ¶
QueryHook defines the structure of our query hook it implements the bun.QueryHook interface
func NewQueryHook ¶
func NewQueryHook(options QueryHookOptions) QueryHook
NewQueryHook returns a new query hook for use with uptrace/bun.
func (QueryHook) AfterQuery ¶
func (qh QueryHook) AfterQuery(ctx context.Context, event *bun.QueryEvent)
func (QueryHook) BeforeQuery ¶
Click to show internal directories.
Click to hide internal directories.