Skip to main content
Records LlamaIndex LLM calls and framework spans. Also verified: llama-index-core 0.14.25 with instrumentor 4.5.2. The extra no longer installs that older instrumentor. See supported frameworks for how verification works.

In code

Call tracing.init(), attach the framework instrumentor to the provider it returns, and wrap the work in tracing.turn() and tracing.agent().
1

Install

terminal
2

Add the code

app.py
3

Run

terminal
Needs BOTGAUGE_API_KEY, OPENAI_API_KEY, OPENAI_MODEL, OPENAI_BASE_URL.

Zero-code

Leave your app unchanged and start it with botgauge instrument. The sample still wraps the work in tracing.turn() and tracing.agent() so spans carry session and agent ids.
1

Install

terminal
2

Add the code

app.py
3

Run

terminal
Needs BOTGAUGE_API_KEY, OPENAI_API_KEY, OPENAI_MODEL, OPENAI_BASE_URL.

View LlamaIndex spans live

Watch your LlamaIndex LLM and framework spans appear in BotGauge.

Try BotGauge →
See versions not verified if you run a different version, capture and redaction to control exported content, and troubleshooting if spans are missing.