tracing

package
v0.0.0-...-a45d15d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled            bool          `env:"TRACE_ENABLED"`
	Host               string        `env:"TRACE_HOST,notEmpty"`
	Port               string        `env:"TRACE_PORT,notEmpty"`
	BatchTimeout       time.Duration `env:"TRACE_BATCH_TIMEOUT" envDefault:"5000ms"`
	MaxExportBatchSize int           `env:"TRACE_MAX_EXPORT_BATCH_SIZE" envDefault:"512"`
	HttpInsecure       bool          `env:"TRACE_HTTP_INSECURE"`
}

func (*Config) Provide

func (cfg *Config) Provide(ctx context.Context, serviceName string) error

Provide provides configuration for tracing

Jump to

Keyboard shortcuts

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