Versions in this module Expand all Collapse all v0 v0.1.1 Nov 23, 2026 v0.1.0 Nov 14, 2026 Changes in this version + const BodyLimit + const HeaderCount + const HeaderLimit + func Clear(owner any) + func Configure(owner any, enabled bool, report func(Event)) + func Endpoint(raw string) string + func HeaderRedactor(redact func(string) string, headers ...*Headers) func(string) string + func IO(address net.Addr, operation string, size int) + func SensitiveHeader(name string) bool + type Body struct + Bytes uint64 + Complete bool + ContentType string + Encoding string + Text string + Truncated bool + func (b *Body) Sanitize(redact func(string) string) + type Capture struct + func NewCapture(contentType string, expected int64, empty bool) *Capture + func (c *Capture) Done(eof bool) + func (c *Capture) Snapshot() Body + func (c *Capture) Write(data []byte) + type Details struct + Request Body + RequestHeaders *Headers + RequestID string + Response Body + ResponseHeaders *Headers + type Event struct + Details *Details + Failed bool + Message string + type Header struct + Name string + Values []string + type HeaderCapture struct + func NewHeaders(values map[string][]string) *HeaderCapture + func (c *HeaderCapture) Snapshot() *Headers + func (c *HeaderCapture) Written(name string, values []string) + func (c *HeaderCapture) WroteRequest() + type Headers struct + Entries []Header + Truncated bool + func (h *Headers) Sanitize(redact func(string) string) + type Trace struct + Request *Capture + RequestHeaders *HeaderCapture + Response *Capture + ResponseHeaders *HeaderCapture + func Start(method string, endpoint *url.URL) *Trace + func (t *Trace) Finish(status int, err error)