autogen icon indicating copy to clipboard operation
autogen copied to clipboard

[Roadmap] Logging and Observability

Open sonichi opened this issue 2 years ago • 12 comments

We want the internal events in agents and conversation patterns to be logged. We also want to support integration with external loggers.  

### Tasks
- [x] Track each llm request and response [PR #1146]
- [ ] Add telemetry ID to agent chat message
- [ ] Logging for streaming mode
- [ ] Logging for AgentEval
- [ ] Add verbose level for the logging
- [ ] Extra logging for teachable agent
- [ ] Extra logging for group chat
- [ ] Test logging with local models
- [ ] https://github.com/microsoft/autogen/issues/770
- [ ] Profile cost and latency of test executio
- [ ] https://github.com/microsoft/autogen/issues/2423
- [ ] https://github.com/microsoft/autogen/pull/2478
- [ ] https://github.com/microsoft/autogen/issues/2581
- [ ] https://github.com/microsoft/autogen/issues/2670

sonichi avatar Aug 19 '23 21:08 sonichi

After solving #203 logging can be done in a new way.

sonichi avatar Oct 26 '23 14:10 sonichi

This is related to #412 where we are discussing the structure of the content of the logged_history. Given the overlap, I'll work on that when #203 is finalized.

victordibia avatar Oct 26 '23 16:10 victordibia

#203 appears to be done. When will we have logging in agents restored? This is VERY important.

radman-x avatar Dec 14 '23 15:12 radman-x

@victordibia it'll be nice to share progress if you know any or ask the dev working on this issue to share progress.

sonichi avatar Jan 01 '24 17:01 sonichi

@afourney , is there a branch we can link here on what Cheng is doing? I agree with @sonichi that sharing progress will provide surface to provide feedback and also avoid duplicate work.

victordibia avatar Jan 01 '24 17:01 victordibia

Not yet that I am aware of. Let's not develop anything here until we hear from her tomorrow

afourney avatar Jan 01 '24 17:01 afourney

Hi folks, I'm adding in the new logging for each agent, will have more updates this week.

cheng-tan avatar Jan 02 '24 14:01 cheng-tan

@cheng-tan maybe create a draft PR so we are aware of this work item?

ekzhu avatar Jan 03 '24 05:01 ekzhu

Hi @radman-x, logging changes have been released with autogen v0.2.14 yesterday, documentation and example notebook. Please let me know if you have any questions or feedback, thanks.

cheng-tan avatar Feb 16 '24 19:02 cheng-tan

I've been exploring with this notebook to consume the sqlite trace - sort of relevant to this issue: https://github.com/microsoft/autogen/pull/2526

lalo avatar Apr 26 '24 12:04 lalo

i've made a PR on custom logger functionality, and the FileLogger #2596

Hk669 avatar May 05 '24 11:05 Hk669

Is it the plan to support Open Telemetry, especially for tracing?

robinmanuelthiel avatar Jul 09 '24 13:07 robinmanuelthiel