Skip to content

Conversation

@amithad
Copy link
Member

@amithad amithad commented Dec 15, 2025

No description provided.

Signed-off-by: Amitha Dissanayake <[email protected]>
Signed-off-by: Amitha Dissanayake <[email protected]>
Copilot AI review requested due to automatic review settings December 15, 2025 08:47
Signed-off-by: Amitha Dissanayake <[email protected]>
Copy link
Contributor

Copilot AI left a 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]>
@amithad amithad requested a review from lakindu-yl December 15, 2025 09:07
@amithad amithad marked this pull request as ready for review December 15, 2025 09:16
Copilot AI review requested due to automatic review settings December 15, 2025 09:16
@amithad amithad merged commit 4d39b8b into develop Dec 15, 2025
9 of 10 checks passed
@amithad amithad deleted the feature/ak_agent_tracing branch December 15, 2025 09:17
Copy link
Contributor

Copilot AI left a 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
Copy link

Copilot AI Dec 15, 2025

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.

Suggested change
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

Copilot uses AI. Check for mistakes.
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.

3 participants