Documentation
¶
Overview ¶
Package bun records queries executed through uptrace/bun as webpprof query entries while preserving Bun's existing hooks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
Connection string
Driver string
Database string
Explain bool
ExplainTimeout time.Duration
ExplainMaxRows int
}
Config supplies connection metadata and optional non-executing EXPLAIN behavior for captured Bun queries.
type ProfilerBun ¶
type ProfilerBun struct {
Config Config
}
ProfilerBun implements webpprof.Integration for Bun databases.
func New ¶
func New(configs ...Config) ProfilerBun
New creates a Bun integration. Only the first optional Config is used.
func (ProfilerBun) Name ¶
func (ProfilerBun) Name() string
Name returns the integration cache namespace.
Click to show internal directories.
Click to hide internal directories.