Documentation ¶
Index ¶
- func BucketScale(factor float64, values ...float64) []float64deprecated
- func Counter(ctx context.Context, name string) (prometheus.Counter, bool)deprecated
- func CounterVec(ctx context.Context, name string) (*prometheus.CounterVec, bool)deprecated
- func Gauge(ctx context.Context, name string) (prometheus.Gauge, bool)deprecated
- func GaugeVec(ctx context.Context, name string) (*prometheus.GaugeVec, bool)deprecated
- func Histogram(ctx context.Context, name string) (prometheus.Histogram, bool)deprecated
- func InitDefaultTracer()
- func InitHTTPTracing()
- func NewCounter(ctx context.Context, name string) context.Contextdeprecated
- func NewCounterVec(ctx context.Context, name string, labels ...string) context.Contextdeprecated
- func NewGauge(ctx context.Context, name string) context.Contextdeprecated
- func NewGaugeVec(ctx context.Context, name string, labels ...string) context.Contextdeprecated
- func NewHistogram(ctx context.Context, name string, buckets ...float64) context.Contextdeprecated
- func NewTransitionCollector(ctx context.Context, name string) context.Context
- type Transition
- type TransitionCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BucketScale
deprecated
func CounterVec
deprecated
func CounterVec(ctx context.Context, name string) (*prometheus.CounterVec, bool)
Deprecated: Store the metric in an Instrumentation struct, a service struct or as a global variable instead. Storing it in the context is unintuitive and verbose.
func InitDefaultTracer ¶ added in v8.2.0
func InitDefaultTracer()
func InitHTTPTracing ¶ added in v8.2.0
func InitHTTPTracing()
Types ¶
type TransitionCollector ¶
type TransitionCollector struct {
// contains filtered or unexported fields
}
func GetTransitionCollector ¶
func GetTransitionCollector(ctx context.Context, name string) *TransitionCollector
func (*TransitionCollector) Finish ¶
func (c *TransitionCollector) Finish() []Transition
Click to show internal directories.
Click to hide internal directories.