-
Notifications
You must be signed in to change notification settings - Fork 198
Add DSPy integration to logfire #1625
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
Add DSPy integration to logfire #1625
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
985cd95 to
2ee40b8
Compare
|
please skip tests for old pydantic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Thanks! |
Motivation
logfire.instrument_dspy()to auto-instrument DSPy calls and capture LLM activity in Logfire.Description
logfire/_internal/integrations/dspy.pywhich loadsopeninference.instrumentation.dspyand callsDSPyInstrumentor().instrument()with the Logfire tracer provider.instrument_dspyonLogfire(logfire/_internal/main.py) and exposed it on the module surface (logfire/__init__.py).docs/integrations/llms/dspy.mdand added it tomkdocs.ymlnavigation.dspyoptional dependency extra inpyproject.tomlreferencingopeninference-instrumentation-dspy.Also tested manually with a simple ReAct agent implemented here.
