Skip to content

v0.28.0

Compare
Choose a tag to compare
@jackmpcollins jackmpcollins released this 15 Jul 06:59
· 74 commits to main since this release

What's Changed

🪵 🔥 Logfire / OpenTelemetry now supported!

This makes it much easier to follow what tool calls are being made by the LLM both as printed output locally and in Logfire or another monitoring service. It also lets you see the raw requests being sent to OpenAI/Anthropic so you can more easily debug issues.

All it takes to get set up is

pip install logfire
import logfire

logfire.configure(send_to_logfire=False)  # Or True to use the Logfire service
logfire.instrument_openai()  # optional, to trace OpenAI API calls
# logfire.instrument_anthropic()  # optional, to trace Anthropic API calls

Check out the new docs page: https://magentic.dev/logging-and-tracing/

PRs

Full Changelog: v0.27.0...v0.28.0