Documentation
¶
Index ¶
- func Counter(name string, opts ...metrics.MetricOption) (metrics.Counter, error)
- func Gauge(name string, opts ...metrics.MetricOption) (metrics.Gauge, error)
- func Histogram(name string, opts ...metrics.MetricOption) (metrics.Histogram, error)
- func Register(ctx context.Context, attrs ...Attribute) context.Context
- type Attribute
- func Bool(k string, b bool) Attribute
- func Float32(k string, f float32) Attribute
- func Float64(k string, f float64) Attribute
- func Int16(k string, i int16) Attribute
- func Int32(k string, i int32) Attribute
- func Int64(k string, i int64) Attribute
- func Int8(k string, i int8) Attribute
- func Str(k, s string) Attribute
- func Uint16(k string, u uint16) Attribute
- func Uint32(k string, u uint32) Attribute
- func Uint8(k string, u uint8) Attribute
- type Done
- type DoneNoErr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Done ¶
func Operation ¶
func Operation(ctx context.Context, operation string, opts ...metrics.MetricOption) (context.Context, Done)
Operation will bootstrap a short lived code path and report traces, metrics, and logs automatically.
An operation is assumed to have some failure condition due to side effects.
Click to show internal directories.
Click to hide internal directories.