Registry / utility / tcnksm-go-httpstat

tcnksm-go-httpstat

JSON →
library0.2.0gogounverified

Traces HTTP latency information (DNS lookup, TCP connection, etc.) on any Go HTTP request.

go get github.com/tcnksm/go-httpstat
INSTALL
IMPORT
SIG · TCNKSM-GO-HTTPSTAT
T
tcnksm-go-httpstat
utilitygov0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

httpstat
github.com/tcnksm/go-httpstat

Trace HTTP request latency with detailed timing breakdown.

package main import ( "fmt" "net/http" "github.com/tcnksm/go-httpstat" ) func main() { var result httpstat.Result ctx := httpstat.WithHTTPStat(nil, &result) req, _ := http.NewRequestWithContext(ctx, "GET", "https://example.com", nil) _, _ = http.DefaultClient.Do(req) fmt.Printf("TCP connection: %v\n", result.TCPConnection) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
tcnksm-go-httpstat — go get tcnksm-go-httpstat · libregistry