block-open-source / goose

Goose is a developer agent that operates from your command line to help you do the boring stuff.
https://block-open-source.github.io/goose/
Apache License 2.0
73 stars 12 forks source link

feat: add basic opentelemetry tracing support #75

Open codefromthecrypt opened 1 week ago

codefromthecrypt commented 1 week ago

This adds basic setup for tracing and some tests as a toe-hold. Later pull requests here can enhance the traces with more data. This would be even better if LLM spans were added as discussed here https://github.com/square/exchange/pull/33

Meanwhile, this is what a trace looks like running against ollama using otel-tui as the tracing backend

Screenshot 2024-09-18 at 6 14 12 PM

If any maintainers have any glitch fixes they also have my permission to push directly to this branch.

codefromthecrypt commented 1 week ago

excellent feedback @anuraaga, thanks for dropping by!