observability

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithConfig

func WithConfig(ctx context.Context, cfg *Config) context.Context

WithConfig associates a observability configuration with the context.

Types

type Config

type Config struct {
	Tracing TracingConfig `json:"tracing"`
	Metrics MetricsConfig `json:"metrics"`
	Runtime RuntimeConfig `json:"runtime"`
}

func DefaultConfig

func DefaultConfig() *Config

func GetConfig

func GetConfig(ctx context.Context) *Config

GetConfig gets the observability config from the provided context.

func NewFromMap

func NewFromMap(m map[string]string) (*Config, error)

type MetricsConfig

type MetricsConfig = metrics.Config

type RuntimeConfig

type RuntimeConfig = runtime.Config

type TracingConfig

type TracingConfig = tracing.Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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