flowdebug

package
v0.0.0-...-fbdc16a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphInterceptor

func GraphInterceptor(p *Profiler) flow.Interceptor

func Graphviz

func Graphviz(topology *types.Topology) (string, error)

func ParseStatsMessage

func ParseStatsMessage() func(string) (*StatsMessage, error)

Types

type History

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

type Metric

type Metric struct {
	*atomic.Int32
	// contains filtered or unexported fields
}

type Profiler

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

func NewProfiler

func NewProfiler(opt *ProfilerOptions) *Profiler

func (*Profiler) AddGraph

func (p *Profiler) AddGraph(id string, topology *types.Topology, metricsPrefix []string) error

func (*Profiler) AddMetric

func (p *Profiler) AddMetric(id string, isRate bool) Metric

func (*Profiler) DeleteMetrics

func (p *Profiler) DeleteMetrics(metricsPrefix []string)

func (*Profiler) RemoveGraph

func (p *Profiler) RemoveGraph(id string, err error)

func (*Profiler) ServeHTTP

func (p *Profiler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Profiler) Stop

func (p *Profiler) Stop()

type ProfilerOptions

type ProfilerOptions struct {
	Debug         bool
	HistoryLength int
	SampleRate    time.Duration

	Logger *logrus.Logger
}

type StatsMessage

type StatsMessage struct {
	GraphId string
	StatId  string
	TagMsgs []StatsTagMessage
}

func RegexStatsMessage

func RegexStatsMessage(str string) (*StatsMessage, error)

func (*StatsMessage) ToString

func (msg *StatsMessage) ToString() string

id.stat;[tag=value|metric@ratio;].

type StatsTagMessage

type StatsTagMessage struct {
	Tag     string
	HasSign bool
	Value   int
	Ratio   float64
	Metric  string
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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