irt

package
v2.17.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package irt provides Instrumented http.RoundTrippers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLogger

func WithLogger(t http.RoundTripper, printf func(format string, v ...interface{})) http.RoundTripper

WithLogger returns http.RoundTripper with request/response logger.

func WithMetrics

func WithMetrics(t http.RoundTripper, subsystem string) (http.RoundTripper, prom.Collector)

WithMetrics returns http.RoundTripper instrumented with returned Prometheus metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL