Skip to content

Commit b55f164

Browse files
authored
Merge branch 'main' into watsonxai-instrumentor
2 parents 8c383d2 + 6398844 commit b55f164

4 files changed

Lines changed: 589 additions & 0 deletions

File tree

agentops/instrumentation/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ def get_instance(self) -> BaseInstrumentor:
8181
module_name="agentops.instrumentation.ibm_watsonx_ai",
8282
class_name="IBMWatsonXInstrumentor",
8383
provider_import_name="ibm_watsonx_ai",
84+
),
85+
module_name="agentops.instrumentation.ag2",
86+
class_name="AG2Instrumentor",
87+
provider_import_name="autogen",
8488
)
8589
]
8690

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""AG2 Instrumentation for AgentOps
2+
3+
This module provides instrumentation for AG2 (AutoGen), adding telemetry to track agent
4+
interactions, conversation flows, and tool usage while focusing on summary-level data rather
5+
than individual message exchanges.
6+
"""
7+
8+
# Version string and package info
9+
LIBRARY_NAME = "ag2"
10+
LIBRARY_VERSION = "0.3.2" # Update based on actual version requirement
11+
12+
from typing import Collection
13+
from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
14+
15+
from agentops.instrumentation.ag2.instrumentor import AG2Instrumentor
16+
17+
__all__ = ["AG2Instrumentor"]

0 commit comments

Comments
 (0)