Core

/app/lib/telemetry/http.go (226 B)

 1
2
3
4
5
6
7
8
9
10
11
12
package telemetry

import (
"net/http"

"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
)

func WrapHTTPClient(cl *http.Client) *http.Client {
cl.Transport = otelhttp.NewTransport(cl.Transport)
return cl
}