Documentation
¶
Index ¶
- func Default(opts ...httpcli.Option) *httpcli.Client
- func Log(logger log.Logger) httpcli.Middleware
- func LogConfigToContext(ctx context.Context, logRequestBody, logResponseBody bool, opts ...LogOption) context.Context
- func Metrics(storage *http_metrics.ClientStorage) httpcli.Middleware
- func RequestId() httpcli.Middleware
- type ClientTracer
- type LogOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogConfigToContext ¶
func Metrics ¶
func Metrics(storage *http_metrics.ClientStorage) httpcli.Middleware
func RequestId ¶
func RequestId() httpcli.Middleware
Types ¶
type ClientTracer ¶ added in v1.38.0
type ClientTracer struct {
// contains filtered or unexported fields
}
func NewClientTracer ¶ added in v1.38.0
func NewClientTracer(clientStorage *metrics.ClientStorage, endpoint string) *ClientTracer
func (*ClientTracer) ClientTrace ¶ added in v1.38.0
func (cli *ClientTracer) ClientTrace() *httptrace.ClientTrace
func (*ClientTracer) ResponseReceived ¶ added in v1.38.0
func (cli *ClientTracer) ResponseReceived()
Click to show internal directories.
Click to hide internal directories.