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 WithDBName ¶
WithDBName sets the database name to report in recorded segments
func WithPortPathOrId ¶
WithPortPathOrId sets the Port/Path/ID to report in recorded segments
func WithProduct ¶
func WithProduct(product newrelic.DatastoreProduct) Option
WithProduct sets the product to report in recorded segments
type QueryHook ¶
type QueryHook struct {
// contains filtered or unexported fields
}
func NewQueryHook ¶
NewQueryHook creates a new bun.QueryHook which reports database usage information to new relic.
func (*QueryHook) AfterQuery ¶
func (q *QueryHook) AfterQuery(ctx context.Context, qe *bun.QueryEvent)
func (*QueryHook) BeforeQuery ¶
Click to show internal directories.
Click to hide internal directories.