Documentation
¶
Overview ¶
Package setup shares OTLP env parsing and base agent options for the config/ and objects/ examples.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseAgentOptions ¶
BaseAgentOptions returns shared [agent.Option]s for both examples (identity, Temporal, LLM, logger).
func UserPrompt ¶
func UserPrompt() string
UserPrompt returns command-line text after the program name, or a default line if empty.
Types ¶
type OTLP ¶
type OTLP struct {
Endpoint string
// AgentProto is used with [agent.ObservabilityConfig].
AgentProto agent.OTLPProtocol
// ObsProto is used with [observability.Option] when building tracer, metrics, and logs manually.
ObsProto observability.Protocol
Insecure bool
}
OTLP holds values from OTEL_EXPORTER_OTLP_ENDPOINT, OTLP_PROTOCOL, OTLP_INSECURE.
func MustParseOTLP ¶
func MustParseOTLP() OTLP
MustParseOTLP reads OTLP-related environment variables and exits on missing endpoint or bad protocol.
Click to show internal directories.
Click to hide internal directories.