spanmetrics

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "span-metrics"
)

Variables

This section is empty.

Functions

func New

func New(cfg Config, registry registry.Registry) gen.Processor

Types

type Config

type Config struct {
	// Buckets for latency histogram in seconds.
	HistogramBuckets []float64 `yaml:"histogram_buckets"`
	// Additional dimensions (labels) to be added to the metric,
	// along with the default ones (service, span_name, span_kind and span_status).
	Dimensions []string `yaml:"dimensions"`
}

func (*Config) RegisterFlagsAndApplyDefaults

func (cfg *Config) RegisterFlagsAndApplyDefaults(prefix string, f *flag.FlagSet)

type Processor added in v1.5.0

type Processor struct {
	Cfg Config
	// contains filtered or unexported fields
}

func (*Processor) Name added in v1.5.0

func (p *Processor) Name() string

func (*Processor) PushSpans added in v1.5.0

func (p *Processor) PushSpans(ctx context.Context, req *tempopb.PushSpansRequest)

func (*Processor) Shutdown added in v1.5.0

func (p *Processor) Shutdown(_ context.Context)

Jump to

Keyboard shortcuts

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