mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-14 12:22:51 -06:00
ce50274c59
This commit implements tracing using the net/http automatic instrumentation wrappers on the server and topdown/http packages. Fixes #1469 Signed-off-by: Rien Valkenaers <rien.valkenaers@gmail.com>
11 lines
392 B
Go
11 lines
392 B
Go
// 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.
|
|
//
|
|
// Doing this requires non-trivial wrapping of the http.ResponseWriter
|
|
// interface, which is also exposed for users interested in a more low-level
|
|
// API.
|
|
package httpsnoop
|
|
|
|
//go:generate go run codegen/main.go
|