Registry / observability / apm-module-apmhttp

apm-module-apmhttp

JSON →
library1.15.0gogounverified

Package apmhttp provides HTTP tracing middleware for Elastic APM.

go get go.elastic.co/apm/module/apmhttp
INSTALL
IMPORT
SIG · APM-MODULE-APMHTTP
A
apm-module-apmhttp
observabilitygov1.15.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.

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.

Agent activity
55 hits · last 30 days
node
46
OpenAI (training)
1
Resources
apm-module-apmhttp — go get apm-module-apmhttp · libregistry