config

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(config interface{}) error

Types

type AgentConfig

type AgentConfig struct {
	Config

	ArchivistAddress string `config:"archivist_address,required"`
	Filter           string `config:"filter,required,description=bpf filter used for capture"`
	InterfaceName    string `config:"interface,required,description=interface to listen on"`
	AgentName        string `config:"agent_name,required,description=the name is used to identify packet source in archivist"`
}

type ArchivistConfig

type ArchivistConfig struct {
	Config

	ListenGRPCAddress string        `config:"listen_grpc,required,description=GRPC address to listen on"`
	ListenHTTPAddress string        `config:"listen_http,required"`
	DataPath          string        `config:"data_path,required"`
	IndexPath         string        `config:"index_path,required"`
	DataRetention     time.Duration `config:"retention"`
}

type Config

type Config struct {
	JaegerEndpoint         string `config:"jaeger_endpoint"`
	ExportTracesToNewRelic bool   `config:"newrelic,description=Export traces to NewRelic"`
	LightStep              bool   `config:"lightstep"`
	Uptrace                bool   `config:"uptrace"`
}

Jump to

Keyboard shortcuts

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