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

Zero-code Telemetry 1: Implement Ag2Instrumentor class #485

Open
davorrunje opened this issue Jan 14, 2025 · 1 comment
Open

Zero-code Telemetry 1: Implement Ag2Instrumentor class #485

davorrunje opened this issue Jan 14, 2025 · 1 comment
Assignees

Comments

@davorrunje
Copy link
Collaborator

davorrunje commented Jan 14, 2025

Implement Ag2Instrumentor class that can be used

instrumentor = Ag2Instrumentor()

user_proxy = UserProxyAgent(...)
agent = ConversibleAgent(...)

# calling initiate_chat() starts a new span
user_proxy.initiate_chat(agent, ...)

Use Semantic Conventions for Generative AI Metrics, make sure you install pip install opentelemetry-semantic-conventions-ai.

Links:

@davorrunje davorrunje moved this to Todo in ag2 Jan 14, 2025
@davorrunje davorrunje added this to ag2 Jan 14, 2025
@davorrunje davorrunje changed the title Zero-code Telemetry: Implement Ag2Instrumentor class Zero-code Telemetry 1: Implement Ag2Instrumentor class Jan 14, 2025
@marklysze
Copy link
Collaborator

Thanks @davorrunje, I've also been following the semantic conventions for Agents and Agentic Frameworks that's currently being investigated. We should try and adopt this when it is developed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

3 participants