Skip to content
Discussion options

You must be logged in to vote

Or don't I need to call UseOpenTelemetry for both the ChatClient and the Agent?

It depends on what you want. The tracing at the IChatClient level and at the AIAgent level are each capable of tracing almost identical information, just to differently named activity sources, and with differently named spans, as the genai convention calls it "chat" for inference and "invoke_agent" for agents. However, the one at the agent level is sitting around the IChatClient, so it won't be privvy to the back and forth issued by the function invocation in the IChatClient pipeline. As such, at the agent level, you'll see a single request/response, whereas at the IChatClient level, you'll see each request …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jooooel
Comment options

Answer selected by jooooel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants