Versions in this module Expand all Collapse all v0 v0.5.1 Nov 3, 2026 v0.5.0 Nov 3, 2026 Changes in this version + func AddGroup(ctx context.Context, prefix string) + func DefaultOperationName(info *RequestTagInfo) string + func InjectTags(ctx context.Context, tags *Tags) context.Context + func ServerConnState(h Handler) func(net.Conn, http.ConnState) + func ServerHandler(base http.Handler, opts ...ServerOption) http.Handler + func SetError(ctx context.Context, err error) + func SetRoute(ctx context.Context, pattern string) + type Begin struct + Client bool + StartTime time.Time + type ClientOption func(*clientConfig) + func WithClientHandler(h ...Handler) ClientOption + func WithClientNameFunc(f func(*RequestTagInfo)) ClientOption + func WithClientTransport(rt http.RoundTripper) ClientOption + type ClientTransport struct + func NewClientTransport(opts ...ClientOption) *ClientTransport + func (ct *ClientTransport) RoundTrip(req *http.Request) (*http.Response, error) + type ConnBegin struct + Client bool + DNSDuration time.Duration + RemoteAddr string + StartTime time.Time + TCPDuration time.Duration + TLSDuration time.Duration + type ConnEnd struct + Client bool + Error error + type ConnStats interface + type ConnTagInfo struct + Client bool + LocalAddr net.Addr + RemoteAddr net.Addr + TLS *tls.ConnectionState + type End struct + Client bool + EndTime time.Time + Error error + HandlerError error + Route Route + type EndErrorKind int + const EndErrorCanceled + const EndErrorDeadline + const EndErrorNone + const EndErrorOther + const EndErrorPanic + const EndErrorRead + const EndErrorWrite + func ClassifyEndError(err error) EndErrorKind + type Handler interface + HandleConn func(ctx context.Context, stats ConnStats) + HandleRequest func(ctx context.Context, stats RequestStats) + TagConn func(ctx context.Context, info *ConnTagInfo) context.Context + TagRequest func(ctx context.Context, info *RequestTagInfo) context.Context + type InData struct + Client bool + Error error + Length int + type InHeader struct + Client bool + ContentLength int64 + Header http.Header + Method string + StatusCode int + TTFB time.Duration + type MultiHandler []Handler + func (mh MultiHandler) HandleConn(ctx context.Context, stats ConnStats) + func (mh MultiHandler) HandleRequest(ctx context.Context, stats RequestStats) + func (mh MultiHandler) TagConn(ctx context.Context, info *ConnTagInfo) context.Context + func (mh MultiHandler) TagRequest(ctx context.Context, info *RequestTagInfo) context.Context + type NoopHandler struct + func (NoopHandler) HandleConn(_ context.Context, _ ConnStats) + func (NoopHandler) HandleRequest(_ context.Context, _ RequestStats) + func (NoopHandler) TagConn(ctx context.Context, _ *ConnTagInfo) context.Context + func (NoopHandler) TagRequest(ctx context.Context, _ *RequestTagInfo) context.Context + type OutData struct + Client bool + Error error + Length int + type OutHeader struct + Client bool + ContentLength int64 + Header http.Header + StatusCode int + type RequestStats interface + type RequestTagInfo struct + Client bool + Header http.Header + Host string + Method string + OperationName string + Proto string + RemoteAddr string + RequestPattern string + Scheme string + URL *url.URL + type Route struct + Group string + Pattern string + type ServerOption func(*serverConfig) + func WithServerHandler(h ...Handler) ServerOption + func WithServerNameFunc(f func(*RequestTagInfo)) ServerOption + type Tags struct + func FromContext(ctx context.Context) *Tags + func NewTags() *Tags + func (t *Tags) Get(key string) (string, bool) + func (t *Tags) Range(fn func(key, value string) bool) + func (t *Tags) Set(key, value string)