-
Notifications
You must be signed in to change notification settings - Fork 8
fix: tracing import errors #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Amitha Dissanayake <[email protected]>
Signed-off-by: Amitha Dissanayake <[email protected]>
Signed-off-by: Amitha Dissanayake <[email protected]>
Signed-off-by: Amitha Dissanayake <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes import errors in tracing modules and adds Langfuse tracing support to the agent deployment. The import path corrections address a previous refactoring where framework implementations were moved from agentkernel.{framework} to agentkernel.framework.{framework} structure.
Key Changes
- Corrected import paths across all tracing modules (openllmetry and langfuse) to reference framework implementations from the
...framework.*namespace instead of the old direct namespace - Added Langfuse tracing integration to the agent deployment configuration, including required dependencies and environment variables
- Updated deployment scripts to reference correct relative paths after repository restructuring
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| ak-py/src/agentkernel/trace/openllmetry/openai.py | Fixed import path from ...openai.openai to ...framework.openai.openai and reordered imports for consistency |
| ak-py/src/agentkernel/trace/openllmetry/langgraph.py | Fixed import path from ...langgraph.langgraph to ...framework.langgraph.langgraph and reordered imports |
| ak-py/src/agentkernel/trace/openllmetry/crewai.py | Fixed import path from ...crewai.crewai to ...framework.crewai.crewai and reordered imports |
| ak-py/src/agentkernel/trace/openllmetry/adk.py | Fixed import path from ...adk.adk to ...framework.adk.adk and reordered imports |
| ak-py/src/agentkernel/trace/langfuse/openai.py | Fixed import path from ...openai.openai to ...framework.openai.openai and reordered imports |
| ak-py/src/agentkernel/trace/langfuse/langgraph.py | Fixed import path from ...langgraph.langgraph to ...framework.langgraph.langgraph, reordered imports, and fixed indentation |
| ak-py/src/agentkernel/trace/langfuse/crewai.py | Fixed import path from ...crewai.crewai to ...framework.crewai.crewai and reordered imports |
| ak-py/src/agentkernel/trace/langfuse/adk.py | Fixed import path from ...adk.adk to ...framework.adk.adk and reordered imports |
| agent/pyproject.toml | Added langfuse extra to agentkernel dependency list |
| agent/deploy/variables.tf | Added Terraform variables for Langfuse configuration (secret key, public key, and base URL) |
| agent/deploy/main.tf | Added Langfuse environment variables to container configuration |
| agent/deploy/deploy.sh | Updated relative paths from ../../ak-py/dist to ../ak-py/dist and commented out build_index.sh call |
| agent/config.yaml | Added trace configuration enabling Langfuse tracing |
| agent/build.sh | Added langfuse extra to forced reinstall command for local development |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Amitha Dissanayake <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uv pip install -r requirements.txt --target=dist/data --find-links ../../ak-py/dist | ||
| uv pip install --force-reinstall --target=dist/data --find-links ../../ak-py/dist agentkernel[api,openai,redis] || true | ||
| uv pip install -r requirements.txt --target=dist/data --find-links ../ak-py/dist | ||
| uv pip install --force-reinstall --target=dist/data --find-links ../ak-py/dist agentkernel[api,openai,redis] || true |
Copilot
AI
Dec 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The agentkernel installation in deploy.sh should include the 'langfuse' extra to match the dependency specification in pyproject.toml and build.sh. Currently, it only includes 'api,openai,redis' but should include 'api,openai,redis,langfuse' to ensure langfuse tracing dependencies are available during local deployment.
| uv pip install --force-reinstall --target=dist/data --find-links ../ak-py/dist agentkernel[api,openai,redis] || true | |
| uv pip install --force-reinstall --target=dist/data --find-links ../ak-py/dist agentkernel[api,openai,redis,langfuse] || true |
No description provided.