observability

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpvarLabel

type ExpvarLabel struct {
	Name  string
	Value string
}

type ExpvarSample

type ExpvarSample struct {
	Name   string
	Labels []ExpvarLabel
	Int64  *int64
	Float  *float64
}

func CollectAerolVMExpvars

func CollectAerolVMExpvars() []ExpvarSample

type MetricsShutdown

type MetricsShutdown func(context.Context) error

func StartOTELMetrics

func StartOTELMetrics(ctx context.Context, logger *slog.Logger, cfg OTELMetricsConfig) (MetricsShutdown, error)

type OTELMetricsConfig

type OTELMetricsConfig struct {
	Enabled     bool
	Endpoint    string
	Interval    time.Duration
	ServiceName string
	NodeID      string
	NodeRole    string
}

type OTELTracesConfig

type OTELTracesConfig struct {
	Enabled     bool
	Endpoint    string
	SampleRatio float64
	ServiceName string
	NodeID      string
	NodeRole    string
}

type TracesShutdown

type TracesShutdown func(context.Context) error

func StartOTELTraces

func StartOTELTraces(ctx context.Context, logger *slog.Logger, cfg OTELTracesConfig) (TracesShutdown, error)

Jump to

Keyboard shortcuts

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