--- id: braintrust-langchain version: "0.3.0" license: MIT license_treatment: permissive maintenance: active --- # braintrust-langchain — DEPRECATED: LangChain integration is now included in the main braintrust package. Install braintrust instead. License: permissive · Maintenance: active · Downloads: 2.3M/mo ## What it is and what it does braintrust-langchain is a deprecated integration package that adds automatic logging of LangChain executions to Braintrust. It works by providing a callback handler that can be attached globally to all LangChain components or passed explicitly to individual calls, capturing LLM calls, chat interactions, chain executions, tool usage, and state management events. The package is no longer maintained as a standalone tool—its functionality has been integrated directly into the main braintrust package. Users should migrate by removing this package and installing or upgrading braintrust, then updating imports to use braintrust.integrations.langchain instead. The callback API remains the same, so migration requires only dependency and import path changes. Use it for: - Migrate existing LangChain + Braintrust projects from this deprecated package to the integrated braintrust version. - Log LangChain chain executions and LLM calls to Braintrust for debugging and evaluation. - Capture LLM responses and agent tool usage automatically without modifying chain code. - Set up global callback handlers to trace all LangChain components without per-call configuration. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a LangChain callback handler to log LangChain executions to Braintrust for tracing and evaluation—now deprecated in favor of the integration built into the main braintrust package. No—do not install this package. It is deprecated and inactive. Install or upgrade the main braintrust package instead and use braintrust.integrations.langchain. The migration is straightforward (import path and dependency change only), and the main package receives active maintenance while this one does not. ## Install pip install braintrust-langchain uv add braintrust-langchain poetry add braintrust-langchain ## Installing braintrust-langchain Before you install: Low friction install with only two runtime dependencies. However, the package is marked inactive—the integration has been moved into the main braintrust package, making this a migration candidate rather than a new installation target. License in practice: MIT license permits permissive use, modification, and distribution with minimal restrictions. Quickstart: pip install braintrust-langchain from braintrust_langchain import BraintrustCallbackHandler, set_global_handler from braintrust import init_logger init_logger(project="your-project-name") handler = BraintrustCallbackHandler() set_global_handler(handler) Requires Python >= 3.10 and BRAINTRUST_API_KEY environment variable set. Verify before relying: - Whether the callback API remains fully compatible between this package and braintrust's integrated version. - Feature parity of streaming LLM calls and agent/tool usage logging across both versions. - Current maintenance status and feature completeness of braintrust.integrations.langchain. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 2.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags langchain braintrust logging, langchain callback handler tracing, llm execution logging, langchain integration monitoring, braintrust langchain deprecated, chain execution tracing, langchain observability, deprecated, langchain-integration, llm-tracing [View on SkillFed](https://skillfed.io/packages/braintrust-langchain) · [View on PyPI](https://pypi.org/project/braintrust-langchain/)