telemetry

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedEngines = []Engine{EngineJaeger, EngineGrafana}

SupportedEngines lists all valid engine names for user-facing help text.

Functions

func ContainerName

func ContainerName(engine Engine) string

ContainerName returns the deterministic container name for a given engine.

func DiscoverOTEL

func DiscoverOTEL(runtime string) map[string]string

DiscoverOTEL scans running containers for any devx-managed telemetry backend. It returns the environment variable map to inject into devx shell, including OTEL_EXPORTER_OTLP_ENDPOINT and standard exporter wiring.

func SpawnArgs

func SpawnArgs(engine Engine, runtime, persistDir string) ([]string, engineConfig, error)

SpawnArgs constructs the container run arguments for the given engine. If persistDir is non-empty, the host directory is bind-mounted into the container to preserve data across restarts.

Types

type Engine

type Engine string

Engine represents a supported local telemetry backend.

const (
	EngineJaeger  Engine = "jaeger"
	EngineGrafana Engine = "grafana"
)

Jump to

Keyboard shortcuts

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