Help us shape the future of Go! Take the 2026 Go Developer Survey

timing

package
v1.63.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServerTiming

func ServerTiming(next http.RoundTripper) http.RoundTripper

ServerTiming records outgoing exchanges on the request's timing collector. The http metric ends at response headers; http_body ends at EOF or Close.

func WithClientTimings

func WithClientTimings(ctx context.Context) context.Context

WithClientTimings observes HTTP connection phases without replacing the transport. Use it for clients outside ServerTiming, such as go-git. Existing trace hooks are preserved. Phase durations overlap.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL