generator

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Max

func Max(x, y int64) int64

Types

type MetricGenerator

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

func NewMetricGenerator

func NewMetricGenerator(seed int64) *MetricGenerator

func (*MetricGenerator) Generate

func (g *MetricGenerator) Generate(metric *topology.Metric, serviceName string) (pmetric.Metrics, bool)

type TraceGenerator

type TraceGenerator struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewTraceGenerator

func NewTraceGenerator(t *topology.Topology, randSeed *rand.Rand, service string, route string) *TraceGenerator

func (*TraceGenerator) Generate

func (g *TraceGenerator) Generate(startTimeNanos int64) *ptrace.Traces

Jump to

Keyboard shortcuts

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