Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/langtrace_python_sdk/instrumentation/agno/instrumentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from opentelemetry.trace import get_tracer
from wrapt import wrap_function_wrapper as _W

from .patch import patch_agent, patch_memory
from .patch import patch_agent, patch_memory, patch_team


class AgnoInstrumentation(BaseInstrumentor):
Expand Down Expand Up @@ -76,6 +76,27 @@ def _instrument(self, **kwargs):
patch_memory("AgentMemory.aupdate_summary", version, tracer),
)

_W(
"agno.team.team",
"Team.run",
patch_team("Team.run", version, tracer),
)
_W(
"agno.team.team",
"Team.arun",
patch_team("Team.arun", version, tracer),
)
_W(
"agno.team.team",
"Team._run",
patch_team("Team._run", version, tracer),
)
_W(
"agno.team.team",
"Team._arun",
patch_team("Team._arun", version, tracer),
)

except Exception:
pass

Expand Down
Loading