Skip to content

docs: Add W&B Weave integration documentation (#1743) #1744

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 2 commits into from

Conversation

parambharat
Copy link

This PR adds documentation for integrating PydanticAI with W&B Weave for OpenTelemetry-based observability.

Changes

  • Adds a new section in docs/logfire.md describing how to configure PydanticAI to send traces to W&B Weave
    Includes installation instructions, code examples for various scenarios, and references to Weave documentation
  • Maintains consistency with existing documentation style

Motivation

This addition provides users with more flexibility in choosing observability solutions beyond Logfire, enhancing PydanticAI's ecosystem compatibility.

Closes #1743

Add documentation for using W&B Weave as an alternative OpenTelemetry backend for PydanticAI instrumentation. This gives users more flexibility in choosing observability tools beyond Logfire.
Copy link
Contributor

hyperlint-ai bot commented May 16, 2025

PR Change Summary

Added documentation for integrating PydanticAI with W&B Weave for OpenTelemetry-based observability.

  • Introduced a new section in the documentation for W&B Weave integration.
  • Provided installation instructions and code examples for configuring OpenTelemetry with PydanticAI.
  • Ensured consistency with existing documentation style.

Modified Files

  • docs/logfire.md

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

@samuelcolvin
Copy link
Member

This is content spam.

You haven't engaged with the library or worked out how our tests work.

@ayulockin
Copy link

ayulockin commented May 21, 2025

Hi @samuelcolvin,

Apologies if our recent PR came across as content spam — that was certainly not our intent.

I’m Ayush, Manager of AI Engineering at Weights & Biases. I wanted to briefly explain the context and also understand your perspective on what might make this a better fit, or why it might not be.

W&B Weave provides an observability layer for agentic workflows, with integrations across various LLM frameworks and providers. Recently, we added support for OpenTelemetry (OTEL)-compatible traces, and as part of that, we documented how PydanticAI users can use Weave to visualize and debug traces: https://weave-docs.wandb.ai/guides/integrations/pydantic_ai.

As longtime fans and users of Pydantic — and now PydanticAI — our goal with the PR was to share this integration with your users, not to push any marketing agenda. If the placement or method was inappropriate, we completely understand and are happy to adjust.

Separately, if possible, I’d also like to kindly request reconsideration of the block on @parambharat from the Pydantic org. He’s a thoughtful and skilled engineer, and we’d love for him to be able to both use and potentially contribute to the project.

If you’re open to it, I’d really appreciate the chance to connect and explore whether there’s a way we could collaborate more meaningfully in the future.

Thanks for your time,
Ayush

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.

Add Documentation for Tracing PydanticAI Agents with W&B Weave
3 participants