tracegen

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 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

type KeyValue map[string]string

func (*KeyValue) Set

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

func (*KeyValue) String

func (v *KeyValue) String() string

Jump to

Keyboard shortcuts

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