telemetry

package
v0.0.0-...-1e75d64 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogAttrs

func LogAttrs(ctx context.Context) []slog.Attr

func MarkCritical

func MarkCritical(ctx context.Context)

func SanitizeIncomingTrace

func SanitizeIncomingTrace(next echo.HandlerFunc) echo.HandlerFunc

func SetOutcome

func SetOutcome(ctx context.Context, outcome string)

func TraceHeader

func TraceHeader(ctx context.Context) http.Header

func WithAgentSessionID

func WithAgentSessionID(ctx context.Context, id string) context.Context

func WithProjectID

func WithProjectID(ctx context.Context, id string) context.Context

func WithRequestID

func WithRequestID(ctx context.Context, id string) context.Context

func WithTaskID

func WithTaskID(ctx context.Context, id string) context.Context

func WithTerminalSessionID

func WithTerminalSessionID(ctx context.Context, id string) context.Context

func WithVMID

func WithVMID(ctx context.Context, id string) context.Context

Types

type Config

type Config struct {
	Enabled        bool   `mapstructure:"enabled"`
	Endpoint       string `mapstructure:"endpoint"`
	Insecure       bool   `mapstructure:"insecure"`
	ServiceName    string `mapstructure:"service_name"`
	ServiceVersion string `mapstructure:"service_version"`
	Environment    string `mapstructure:"environment"`
}

type Shutdown

type Shutdown func(context.Context) error

func Setup

func Setup(ctx context.Context, cfg Config) (Shutdown, error)

Jump to

Keyboard shortcuts

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