Skip to content

fix: replace logfire-api with logfire dependency in pydantic-evals #2571

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

Closed
wants to merge 1 commit into from

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Aug 15, 2025

This fixes the MagicMock issue when logfire is not installed by ensuring logfire is always available. Previously, logfire-api provided only the interface while actual span duration calculations require the full logfire package.

Fixes #2209

Generated with Claude Code

This fixes the MagicMock issue when logfire is not installed by ensuring
logfire is always available. Previously, logfire-api provided only the
interface while actual span duration calculations require the full logfire
package.

Fixes #2209

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Marcelo Trylesinski <[email protected]>
Copy link

github-actions bot commented Aug 15, 2025

Docs Preview

commit: 921d206
Preview URL: https://18c4c148-pydantic-ai-previews.pydantic.workers.dev

@Kludex
Copy link
Member Author

Kludex commented Aug 18, 2025

Adding logfire as a dependency is also some work.

I need to change the code to use logfire instead of opentelemetry-api, and update the documentation.

@Kludex Kludex closed this Aug 18, 2025
@Kludex Kludex reopened this Aug 18, 2025
@Kludex
Copy link
Member Author

Kludex commented Aug 20, 2025

Let's add if another problem happens in the future.

@Kludex Kludex closed this Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pydantic Evals report can't be displayed if logfire is not installed
2 participants