feat: initial instrumentation for llama index sdk. - #309
Merged
lmolkova merged 6 commits intoJul 29, 2026
Merged
Conversation
Pull request dashboard statusMerged · refreshed 2026-07-29 04:21 UTC Status above doesn't look right?
|
…elemetry-python-genai into feat/add-llama-index-instrumentation-skeleton Assisted-by: ChatGPT 5 # Conflicts: # uv.lock
lmolkova
approved these changes
Jul 25, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new opentelemetry-instrumentation-genai-llama-index package to the monorepo as an initial scaffold, wiring it into the workspace and CI/test matrix so future LlamaIndex SDK patching can be implemented in-repo.
Changes:
- Introduces a new LlamaIndex instrumentation package scaffold (metadata, entrypoint, versioning, minimal tests, changelog fragment).
- Wires the new package into the repo tooling (tox envs, workspace deps, pyright include/excludes, docs requirements).
- Updates the generated instrumentation index (and generator) to list the new package.
Reviewed changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tox.ini | Adds test/lint envs and dependency factors for the new llama-index instrumentation package. |
| scripts/generate_instrumentation_readme.py | Ensures the generated instrumentation table ends with a trailing newline. |
| pyproject.toml | Adds the new package to workspace dependencies and pyright include/exclude lists. |
| instrumentation/README.md | Adds the llama-index package row to the instrumentation table. |
| docs-requirements.txt | Adds llama-index-core to docs build requirements. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/tests/test_instrumentor.py | Adds minimal scaffold tests for the new instrumentor. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/tests/requirements.oldest.txt | Adds oldest-factor test requirements stub and guidance. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/tests/requirements.latest.txt | Adds latest-factor test requirements (including editable installs for local packages). |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/tests/conftest.py | Adds shared fixture wiring using opentelemetry.test_util_genai plugins. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/tests/init.py | Initializes the new test package. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/src/opentelemetry/instrumentation/genai/llama_index/version.py | Defines the package version. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/src/opentelemetry/instrumentation/genai/llama_index/package.py | Declares the instruments dependency tuple. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/src/opentelemetry/instrumentation/genai/llama_index/init.py | Adds the instrumentor scaffold and wires TelemetryHandler + completion-hook loading. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/README.rst | Adds package README for PyPI long description. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/pyproject.toml | Adds package metadata, dependencies, optional instruments, and entrypoint. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/LICENSE | Adds Apache-2.0 license file for the new package. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/.changelog/309.added | Adds a towncrier fragment describing the new package scaffold. |
| instrumentation/opentelemetry-instrumentation-genai-llama-index/.changelog/.gitignore | Ensures .changelog/ is kept in git. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds initial skeleton for llama index sdk.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How has this been tested?
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. List any relevant details for your test
configuration.
Checklist
See CONTRIBUTING.md
for the style guide, changelog guidance, and more.