Documentation ¶
Index ¶
- func Do(req *http.Request) (*http.Response, error)
- func Handle(pattern string, handler http.Handler, mux ...*http.ServeMux)
- func HandleFunc(pattern string, handlerFunc http.HandlerFunc, mux ...*http.ServeMux)
- func InstrumentDefaultClient()
- func NewClient() http.Client
- func NewHandler(handler http.Handler) http.Handler
- func NewRequest(ctx context.Context, method, url string, body io.Reader) (*http.Request, error)
- type ServeMux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleFunc ¶
func HandleFunc(pattern string, handlerFunc http.HandlerFunc, mux ...*http.ServeMux)
func InstrumentDefaultClient ¶
func InstrumentDefaultClient()
func NewHandler ¶
NewHandler wraps a http.Handler with OpenTelemetry instrumentation. The span name is set to the HTTP method only as no route is available.
Types ¶
type ServeMux ¶
func NewServeMux ¶
func NewServeMux() *ServeMux
func (*ServeMux) HandleFunc ¶
func (mux *ServeMux) HandleFunc(pattern string, handlerFunc http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.