Skip to content

Conversation

@fenilfaldu
Copy link
Contributor

📥 Pull Request

#790 #994

📘 Description

  1. Streaming Context Management
    Implemented a StreamingContextManager to handle long-running streaming operations where traditional span management doesn't work
    Maintains active span contexts across streaming iterations, ensuring child operations (like LLM calls) remain properly nested
    Automatically cleans up contexts when streaming completes

  2. Hierarchical Trace Context Propagation
    Team → Agent → Tool hierarchy: Team operations create parent spans that encompass all agent activities
    Agent → LLM context linking: Agent contexts are preserved and propagated to LLM instrumentation through session ID mapping

  3. Instrumented Components
    Agent Operations: run/arun methods for synchronous and asynchronous agent execution
    Team Workflows: Team collaboration with proper parent-child relationships
    Tool Execution: Function calls maintain context from their calling agent
    Metrics Collection: Token usage and timing metrics with proper attribution

🧪 Testing
Example

Screenshot 2025-06-06 at 7 35 31 PM

tcdent
tcdent previously requested changes Jun 6, 2025
@fenilfaldu fenilfaldu requested review from bboynton97 and tcdent June 8, 2025 01:18
@areibman areibman requested a review from dot-agi June 11, 2025 15:57
Copy link
Member

@dot-agi dot-agi left a comment

Choose a reason for hiding this comment

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

One more in the sack, thanks to @fenilfaldu 🚀

@dot-agi dot-agi enabled auto-merge (squash) June 12, 2025 20:05
@dot-agi dot-agi dismissed tcdent’s stale review June 12, 2025 20:05

We need this Travis

@dot-agi dot-agi merged commit 8dbcfa9 into main Jun 12, 2025
9 of 10 checks passed
@dot-agi dot-agi deleted the agno_instrumentation branch June 12, 2025 20:05
@dot-agi dot-agi linked an issue Jun 14, 2025 that may be closed by this pull request
3 tasks
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.

[Feature]: Integrate Agno agentic library

5 participants