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.
apmhttp
✓ go.elastic.co/apm/module/apmhttp
Wrap an HTTP handler with APM tracing
package main
import (
"net/http"
"go.elastic.co/apm/module/apmhttp"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello"))
})
http.ListenAndServe(":8080", apmhttp.Wrap(mux))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.15.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.