errorhandling

package
v1.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spec

func Spec() docs.FieldSpecs

Types

type Config

type Config struct {
	Strategy string    `yaml:"strategy"`
	Log      LogConfig `yaml:"log"`
}

Config holds configuration options for the global error handling.

func FromParsed

func FromParsed(pConf *docs.ParsedConfig) (conf Config, err error)

func NewConfig

func NewConfig() Config

NewConfig returns a config struct with the default values for each field.

type LogConfig added in v1.5.0

type LogConfig struct {
	Enabled       bool    `yaml:"enabled"`
	AddPayload    bool    `yaml:"add_payload"`
	SamplingRatio float64 `yaml:"sampling_ratio"`
}

LogConfig holds configuration options for global error logging.

Jump to

Keyboard shortcuts

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