Skip to content

feat: Add LlamaIndex retrieval spans - #502

Draft
eternalcuriouslearner wants to merge 22 commits into
feat/llama-index-agent-workflow-spansfrom
feat/llama-index-retrieval-spans
Draft

feat: Add LlamaIndex retrieval spans#502
eternalcuriouslearner wants to merge 22 commits into
feat/llama-index-agent-workflow-spansfrom
feat/llama-index-retrieval-spans

Conversation

@eternalcuriouslearner

@eternalcuriouslearner eternalcuriouslearner commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Stacked on #495.

Adds retrieval spans for synchronous and asynchronous LlamaIndex BaseRetriever operations. Query text and retrieved documents are captured only when span content capture is enabled; retrieval remains nested under agent/tool spans. Provider inference and embedding spans remain delegated to provider instrumentation.

Includes sync/async success and error coverage, content-capture assertions, agent-tool hierarchy coverage, conformance coverage, and README documentation.

- Updated README to clarify instrumentation capabilities for LlamaIndex.
- Introduced example scripts for manual and zero-code usage of FunctionAgent.
- Implemented LlamaIndexSpanHandler to map agent and tool operations to GenAI spans.
- Added tests for agent and tool instrumentation, including conformance tests.
- Enhanced test suite with new requirements for OpenAI LLM integration.
- Updated tox configuration to include conformance testing environment.
…y-python-genai into feat/llama-index-agent-spans

# Conflicts:
#	instrumentation/opentelemetry-instrumentation-genai-llama-index/tests/requirements.latest.txt
#	tox.ini
Assisted-by: Codex GPT-5.6
Assisted-by: Codex GPT-5.6
Assisted-by: Codex GPT-5.6
@eternalcuriouslearner eternalcuriouslearner changed the title feat/llama index retrieval spans feat: Add LlamaIndex retrieval spans Aug 31, 2026
@eternalcuriouslearner
eternalcuriouslearner force-pushed the feat/llama-index-retrieval-spans branch from a736a4e to 5d98b18 Compare September 1, 2026 02:36
Assisted-by: Codex GPT-5.6
@eternalcuriouslearner
eternalcuriouslearner force-pushed the feat/llama-index-retrieval-spans branch from 5d98b18 to 076819e Compare September 1, 2026 11:51
Assisted-by: Codex GPT-5.6
Assisted-by: Codex GPT-5.6
@eternalcuriouslearner
eternalcuriouslearner force-pushed the feat/llama-index-retrieval-spans branch from 1d4c4e8 to ba2c9c2 Compare September 1, 2026 20:52
@opentelemetry-pr-dashboard

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-09-02 14:52 UTC

Move out of draft to request review.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant