Skip to content

Conversation

@ultmaster
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings November 28, 2025 02:44
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 pull request enables LiteLLM's root span feature for OpenTelemetry tracing by setting the USE_OTEL_LITELLM_REQUEST_SPAN environment variable. The changes add debugging capabilities and ensure consistent data structure in test metrics.

  • Sets environment variable to enable LiteLLM request span in OpenTelemetry instrumentation
  • Adds debug logging for span attributes in tests
  • Ensures consistent data structure in validation metrics when triplets are missing

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
agentlightning/llm_proxy.py Sets USE_OTEL_LITELLM_REQUEST_SPAN environment variable to enable LiteLLM root span for OpenTelemetry tracing
tests/llm_proxy/test_llm_proxy_gpu.py Adds debug print statement to log span attributes for troubleshooting
agentlightning/verl/daemon.py Adds has_reward field to sample stats when no triplets are found, making the data structure consistent with cases where triplets exist

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if _global_llm_proxy is not None:
logger.warning("A global LLMProxy is already set. Overwriting it with the new instance.")

# Patch:
Copy link

Copilot AI Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment "# Patch:" is vague and doesn't explain what is being patched or why. Consider updating this to clarify the purpose, such as:

# Enable LiteLLM root span for OpenTelemetry tracing

This would make it clear that this setting enables the LiteLLM request span in OpenTelemetry instrumentation.

Suggested change
# Patch:
# Enable LiteLLM root span for OpenTelemetry tracing

Copilot uses AI. Check for mistakes.
@ultmaster
Copy link
Contributor Author

/ci

@github-actions
Copy link

github-actions bot commented Nov 28, 2025

🚀 CI Watcher for correlation id-3587760245-mii9umgv triggered by comment 3587760245
🏃‍♀️ Tracking 3 workflow run(s):

✅ All runs completed.

@ultmaster ultmaster merged commit ce80b09 into main Nov 28, 2025
14 checks passed
totoluo pushed a commit to totoluo/agent-lightning that referenced this pull request Dec 6, 2025
totoluo pushed a commit to totoluo/agent-lightning that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants