tracegen

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c *Config, logger *zap.Logger) error

Run executes the test scenario.

Types

type Config

type Config struct {
	WorkerCount      int
	NumTraces        int
	PropagateContext bool
	Rate             int64
	TotalDuration    time.Duration
	ServiceName      string

	// OTLP config
	Endpoint           string
	Insecure           bool
	UseHTTP            bool
	Headers            KeyValue
	ResourceAttributes KeyValue
}

Config describes the test scenario.

func (*Config) Flags

func (c *Config) Flags(fs *flag.FlagSet)

Flags registers config flags.

type KeyValue added in v0.55.0

type KeyValue map[string]string

func (*KeyValue) Set added in v0.55.0

func (v *KeyValue) Set(s string) error

func (*KeyValue) String added in v0.55.0

func (v *KeyValue) String() string

Jump to

Keyboard shortcuts

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