tracegen

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 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  HeaderValue
}

Config describes the test scenario.

func (*Config) Flags

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

Flags registers config flags.

type HeaderValue added in v0.43.0

type HeaderValue map[string]string

func (*HeaderValue) Set added in v0.43.0

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

func (*HeaderValue) String added in v0.43.0

func (v *HeaderValue) String() string

Jump to

Keyboard shortcuts

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