common

package
v0.86.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(skipSettingGRPCLogger bool) (*zap.Logger, error)

CreateLogger creates a logger for use by telemetrygen

Types

type Config

type Config struct {
	WorkerCount           int
	Rate                  int64
	TotalDuration         time.Duration
	ReportingInterval     time.Duration
	SkipSettingGRPCLogger bool

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

func (*Config) CommonFlags

func (c *Config) CommonFlags(fs *pflag.FlagSet)

CommonFlags registers common config flags.

func (*Config) GetAttributes

func (c *Config) GetAttributes() []attribute.KeyValue

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

func (*KeyValue) Type

func (v *KeyValue) Type() string

Jump to

Keyboard shortcuts

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