Skip to content
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

docs: add span events documentation for chat completion traces #114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Add Span Events Documentation for Chat Completion Traces

This PR adds comprehensive documentation for span events in chat completion traces, including:

Changes

  • Added span events documentation to POST /api/trace endpoint reference
  • Updated tracing guide with token streaming and function call examples
  • Added detailed examples for both Python and JavaScript SDKs
  • Included visual documentation of trace events in the UI

Documentation Updates

  • Added span events section to API reference
  • Enhanced OpenAI chat completion examples with streaming
  • Added function call event documentation
  • Updated attribute documentation for all event types

Testing

  • Verified documentation accuracy against implementation
  • Confirmed example code functionality
  • Validated all links and references
  • Checked formatting and structure consistency

Link to Devin run: https://preview.devin.ai/devin/ca53be04abf140798c555b14a2b379d5

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring
Additional Controls

You can control how I interact with specific messages:

  • Add "(aside)" to your comment to have me ignore it
  • Use "@devin" to explicitly get my attention on a comment

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.

0 participants