options

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// DefaultTracerProvider is the default distributed tracer exporter implementation
	DefaultTracerProvider = "none"
	// DefaultTracerServiceName is the default service name under which traces are registered
	DefaultTracerServiceName = "trickster"
)

Variables

This section is empty.

Functions

func ProcessTracingOptions

func ProcessTracingOptions(mo Lookup)

ProcessTracingOptions enriches the configuration data of the provided Tracing Options collection

Types

type Lookup

type Lookup map[string]*Options

Lookup is a map of Options keyed by Options Name

func (Lookup) Validate

func (l Lookup) Validate() error

type Options

type Options struct {
	Name               string            `yaml:"-"`
	Provider           string            `yaml:"provider,omitempty"`
	ServiceName        string            `yaml:"service_name,omitempty"`
	Endpoint           string            `yaml:"endpoint,omitempty"`
	Timeout            time.Duration     `yaml:"timeout,omitempty"`
	Headers            map[string]string `yaml:"headers,omitempty"`
	DisableCompression bool              `yaml:"disable_compression,omitempty"`
	SampleRate         *float64          `yaml:"sample_rate,omitempty"`
	Tags               map[string]string `yaml:"tags,omitempty"`
	OmitTagsList       []string          `yaml:"omit_tags,omitempty"`

	StdOutOptions *stdoutopts.Options `yaml:"stdout,omitempty"`

	OmitTags sets.Set[string] `yaml:"-"`
}

Options is a Tracing Options collection

func New

func New() *Options

New returns a new *Options with the default values

func (*Options) Clone

func (o *Options) Clone() *Options

Clone returns an exact copy of a tracing config

func (*Options) SanitizeSampleRate

func (o *Options) SanitizeSampleRate()

func (*Options) UnmarshalYAML

func (o *Options) UnmarshalYAML(unmarshal func(any) error) error

func (*Options) Valdiate

func (o *Options) Valdiate() error

Jump to

Keyboard shortcuts

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