config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Trace
	// Level is the log level. Possible values: debug, info, warn, error
	Level string `yaml:"level" validate:"eq=debug|eq=info|eq=warn|eq=error"`
	// Format is the log format. Possible values: json, text
	Format string `yaml:"format" validate:"eq=text|eq=json"`
	Mode   string `yaml:"mode" validate:"eq=file|eq=console|eq="`
	lumberjack.Logger
}

Config represents a configuration.

type Trace

type Trace struct {
	Name     string  `yaml:"name"`
	Endpoint string  `yaml:"endpoint"`
	Sampler  float64 `yaml:"sampler"`
	Batcher  string  `yaml:"batcher"  validate:"eq=jaeger|eq=zipkin|eq="` // jaeger|zipkin
}

Trace represents a tracing configuration.

Jump to

Keyboard shortcuts

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