Package apmrestful provides a tracing and panic/exception reporting filter for for the go-restful framework.
Filter returns a new restful.Filter for tracing requests and recovering and reporting panics to Elastic APM.
By default, the filter will use apm.DefaultTracer. Use WithTracer to specify an alternative tracer.
// Install the filter into the default/global Container. restful.Filter(apmrestful.Filter())
type Option func(*options)
Option sets options for tracing.
WithTracer returns an Option which sets t as the tracer to use for tracing server requests.