Documentation
¶
Overview ¶
Command tls-eino-demo runs a real Eino graph and exports its traces to Volcengine TLS through the eino-ext TLS callback handler.
Unlike a handcrafted OnStart/OnEnd sequence, this demo builds an actual compose.Chain (prompt template -> chat model) and invokes it. The TLS handler is registered as a global Eino callback, so the agent.turn / llm.request spans are produced by the framework itself — exactly what a production integration looks like.
Configure it with the environment variables below and run it:
export TLS_EXPORTER_ENABLED=true export TLS_APP_NAME=tls-eino-demo export TLS_LOG_ENDPOINT=tls-cn-beijing2.volces.com # optional, defaults from region export TLS_LOG_REGION=cn-beijing2 export TLS_LOG_TRACE_TOPIC_ID=<your-trace-topic-id> export TLS_LOG_API_KEY=<your-tls-api-key> # or TLS_LOG_AK + TLS_LOG_SK go run .
Click to show internal directories.
Click to hide internal directories.