Ross ROSS = Recommend OSS · open-source software intelligence for agents

felixge/httpsnoop

Package httpsnoop provides an easy way to capture http related metrics (i.e. response time, bytes written, and http status code) from your application's http.Handlers. observed · 2026-08-28

github.com/felixge/httpsnoop · homepage · Go · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

79/100

  • Activity 87
  • Release rhythm 56
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 3584
  • days_rel: 83
  • days_push: 83
  • n_releases_24m: 1

Full methodology

Adoption not part of the score

1165 stars · 48 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A small Go library that captures HTTP metrics (response time, bytes written, status code) from http.Handlers by safely wrapping http.ResponseWriter. It preserves optional interfaces like Flusher, Hijacker, and Pusher to avoid subtle bugs.

Use cases

  • capture http status code from a handler in go
  • log response time and bytes written per request
  • instrument go http handlers with metrics middleware
  • wrap http.ResponseWriter without breaking Flusher or Hijacker
  • add request logging middleware to a go web server

When to choose

  • you need per-request metrics in a Go net/http app with minimal dependencies
  • naive ResponseWriter wrapping is breaking interfaces like http.Flusher or http.Hijacker
  • you want a tiny, stable, widely-used library (700+ importers)

When to avoid

  • you use a web framework that already provides built-in metrics middleware
  • you need full APM/tracing rather than simple request metrics
  • your handlers add custom interfaces to ResponseWriter that httpsnoop cannot detect

Facets

library · maturity stable

monitoring middleware http-server web-development backend developer-tools monitoring go windows cross-platform http-metrics responsewriter-wrapper request-logging instrumentation linux macos

5 sources

Member repositories

RepositoryRoleHealth v2
felixge/httpsnoopmain79

For agents

markdown · JSON · MCP: product_card(name="felixge/httpsnoop")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem