Skip to content

LangChain instrumentation via LangSmith #1084

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

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open

Conversation

alexmojaki
Copy link
Contributor

@alexmojaki alexmojaki commented May 20, 2025

Adds processing for spans produced by LangSmith's OTel tracing to work better in Logfire.

Copy link

cloudflare-workers-and-pages bot commented May 20, 2025

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4283846
Status: ✅  Deploy successful!
Preview URL: https://ab085c67.logfire-docs.pages.dev
Branch Preview URL: https://alex-langchain.logfire-docs.pages.dev

View logs

@alexmojaki alexmojaki marked this pull request as draft May 20, 2025 12:27
Copy link
Contributor

hyperlint-ai bot commented May 27, 2025

PR Change Summary

Added documentation for integrating LangChain with Logfire using OpenTelemetry tracing.

  • Introduced a new section on LangChain integration with Logfire.
  • Provided example code for setting up OpenTelemetry tracing with LangChain.
  • Included a visual representation of the trace in Logfire.

Added Files

  • docs/integrations/llms/langchain.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.

@alexmojaki alexmojaki changed the title LangChainInstrumentor WIP LangChain instrumentation via Langsmith May 27, 2025
@alexmojaki alexmojaki marked this pull request as ready for review May 27, 2025 16:30
@alexmojaki alexmojaki requested review from samuelcolvin and Kludex May 27, 2025 16:30
@alexmojaki alexmojaki changed the title LangChain instrumentation via Langsmith LangChain instrumentation via LangSmith May 27, 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.

1 participant