Documentation
¶
Index ¶
- func Middleware(duck *duckbug.Duck, options ...Option) func(http.Handler) http.Handler
- type Config
- type Option
- func WithCaptureHandled5xx(enabled bool) Option
- func WithCapturePanics(enabled bool) Option
- func WithCaptureTransactions(enabled bool) Option
- func WithHandled5xxMaxBodyBytes(limit int) Option
- func WithIgnoredPathPrefixes(prefixes ...string) Option
- func WithIgnoredPaths(paths ...string) Option
- func WithMaxBodyBytes(limit int64) Option
- func WithProductionDefaults() Option
- func WithReadBody(enabled bool) Option
- func WithRepanic(enabled bool) Option
- func WithSkipRequest(fn func(*http.Request) bool) Option
- func WithTransactionSampleRate(rate float64) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Config)
func WithCaptureHandled5xx ¶ added in v0.2.1
func WithCapturePanics ¶
func WithCaptureTransactions ¶ added in v0.1.1
func WithHandled5xxMaxBodyBytes ¶ added in v0.2.1
func WithIgnoredPathPrefixes ¶ added in v0.1.1
func WithIgnoredPaths ¶ added in v0.1.1
func WithMaxBodyBytes ¶
func WithProductionDefaults ¶ added in v0.2.2
func WithProductionDefaults() Option
WithProductionDefaults enables the most common HTTP server production setup: panic capture, handled 5xx capture, and transaction capture with conservative sampling.
func WithReadBody ¶
func WithRepanic ¶
func WithTransactionSampleRate ¶ added in v0.1.1
Click to show internal directories.
Click to hide internal directories.