Documentation
¶
Overview ¶
Package telemetry decides the OpenTelemetry environment a Claude seat launches with: token metrics tagged by seat, and never logs or events. See docs/claude-launch-identity.md.
Index ¶
Constants ¶
View Source
const ( // EnvSwitch is the launch-time kill switch. "off" disables export. EnvSwitch = "AGENT_COMPOSE_TELEMETRY" // EnvShadow is the native session id AOS sets for a shadowed session. EnvShadow = "AOS_NATIVE_SESSION" // DefaultProtocol matches the collector's OTLP/HTTP listener. DefaultProtocol = "http/protobuf" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
OTLPMetricsEndpoint string `yaml:"otlp_metrics_endpoint"`
Protocol string `yaml:"protocol"`
}
Config is the `telemetry` block of the host configuration.
type Plan ¶
Plan is the environment change a launch applies: Set wins, Unset clears.
func Environment ¶
Environment returns the plan for one Claude seat. Disabled or endpointless, it clears every managed variable, so an exporting parent leaks nothing.
Click to show internal directories.
Click to hide internal directories.