Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(h *QueryHook)
func WithAttributes ¶
WithAttributes configures attributes that are used to create a span.
func WithFormattedQueries ¶
WithFormattedQueries enables formatting of the query that is added as the statement attribute to the trace. This means that all placeholders and arguments will be filled first and the query will contain all information as sent to the database.
type QueryHook ¶
type QueryHook struct {
// contains filtered or unexported fields
}
func NewQueryHook ¶
func (*QueryHook) AfterQuery ¶
func (h *QueryHook) AfterQuery(ctx context.Context, event *bun.QueryEvent)
func (*QueryHook) BeforeQuery ¶
Click to show internal directories.
Click to hide internal directories.