observability

package
v0.0.0-...-93d6642 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 3

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
k8s
metricstest
Package metricstest provides test helpers to assert OTel metrics are recorded properly.
Package metricstest provides test helpers to assert OTel metrics are recorded properly.
Package runtime provides configuration to publish Go runtime statistics and HTTP helpers to expose Go runtime profiling data
Package runtime provides configuration to publish Go runtime statistics and HTTP helpers to expose Go runtime profiling data
k8s

Jump to

Keyboard shortcuts

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