stats

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicate = errors.New("duplicate stat name")

Functions

func NewHoneycombExporter

func NewHoneycombExporter(conf HoneycombConfig) *honeycomb.Exporter

func NewPrometheusExporter

func NewPrometheusExporter(conf PrometheusConfig) (*prometheus.Exporter, error)

Types

type HoneycombConfig

type HoneycombConfig struct {
	APIKey           string
	Dataset          string
	TraceProbability float64
}

type Hub added in v0.26.0

type Hub struct {
	// contains filtered or unexported fields
}

func NewHub added in v0.26.0

func NewHub() *Hub

func (*Hub) Add added in v0.26.0

func (h *Hub) Add(name string, ar *bstats.ActivityRecorder) error

func (*Hub) Get added in v0.26.0

func (h *Hub) Get(name string) (*bstats.ActivityRecorder, bool)

func (*Hub) Report added in v0.26.0

func (h *Hub) Report(indent string) string

func (*Hub) Start added in v0.26.0

func (h *Hub) Start(ctx context.Context) error

type PrometheusConfig

type PrometheusConfig struct {
	Namespace string
}

Jump to

Keyboard shortcuts

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