Documentation ¶
Index ¶
- type Builder
- func (builder *Builder) Build() ClientTrace
- func (builder *Builder) HistogramVec(histogram *prometheus.HistogramVec) *Builder
- func (builder *Builder) LogDebugf(format string, args ...interface{}) *Builder
- func (builder *Builder) LogInfof(format string, args ...interface{}) *Builder
- func (builder *Builder) MetricCounterVec(counter *prometheus.CounterVec) *Builder
- type ClientTrace
- type ClientTraceFunc
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder(logger Logger, metrics prometheus.Registerer) *Builder
func (*Builder) Build ¶
func (builder *Builder) Build() ClientTrace
func (*Builder) HistogramVec ¶
func (builder *Builder) HistogramVec(histogram *prometheus.HistogramVec) *Builder
func (*Builder) MetricCounterVec ¶
func (builder *Builder) MetricCounterVec(counter *prometheus.CounterVec) *Builder
type ClientTrace ¶
func Combine ¶
func Combine(traces ...ClientTrace) ClientTrace
func LogDebugf ¶
func LogDebugf(logger Logger, format string, args ...interface{}) ClientTrace
func LogInfof ¶
func LogInfof(logger Logger, format string, args ...interface{}) ClientTrace
func Noop ¶
func Noop() ClientTrace
type ClientTraceFunc ¶
Click to show internal directories.
Click to hide internal directories.