langwatch
LangWatch Python SDK, for monitoring your LLMs
Decision gist · record as of 2026-08-14
Yes, if you are building or operating a Python LLM application and want observability into LLM interactions. The SDK is actively maintained, has low install friction, uses a permissive MIT license, and integrates cleanly with popular frameworks. Install only if you have a LangWatch account and API key; the SDK is designed specifically for the LangWatch platform and will not be useful without it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Requires a LangWatch API key (set via LANGWATCH_API_KEY environment variable or passed to setup()).
- Low friction install with a pure-Python wheel.
License · maintenance · safety
MIT (permissive) — MIT license (permissive). You can use, modify, and distribute this package with minimal restrictions in commercial and open-source projects.
last release 2026-08-07 (7 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 332,925 downloads/mo, #7,502 on PyPI
Alternatives
Verify before relying
pip install langwatch
import langwatch
langwatch.setup() # Uses LANGWATCH_API_KEY env var
@langwatch.trace()
async def my_llm_operation():
# Your LLM code here
pass- Whether the package automatically instruments all major LLM frameworks or requires explicit setup per framework.
- Performance overhead of tracing on typical LLM application throughput.
- Data retention and privacy guarantees for traces sent to LangWatch servers.
What it is and what it does
LangWatch is an observability SDK that integrates with Python LLM applications to capture and export traces of LLM interactions. It uses OpenTelemetry as its instrumentation foundation and provides decorators (@langwatch.trace() and @langwatch.span()) to mark entry points and individual operations within your LLM pipeline. The SDK automatically captures function inputs, outputs, and metadata, then sends this telemetry to the LangWatch cloud platform for monitoring and analysis.
The package includes built-in instrumentors for popular frameworks—OpenAI, LangChain, Haystack, and CrewAI—allowing automatic capture of LLM calls without manual span creation. You can also manually create spans for custom operations like RAG retrieval or database queries. Traces can be grouped by thread_id for conversation tracking and by user_id for user analytics. The SDK is designed to integrate into existing OpenTelemetry setups or work standalone with minimal configuration.
Use it for
- Monitor OpenAI, LangChain, or Haystack LLM calls in production to track latency, errors, and token usage.
- Group related LLM operations into conversations using thread_id for multi-turn dialogue analysis.
- Capture RAG retrieval steps and other custom pipeline stages as nested spans within a single trace.
- Track user interactions and analytics by attaching user_id metadata to traces.
- Debug LLM application behavior by exporting detailed traces to the LangWatch dashboard.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building or operating a Python LLM application and want observability into LLM interactions.
The SDK is actively maintained, has low install friction, uses a permissive MIT license, and integrates cleanly with popular frameworks. Install only if you have a LangWatch account and API key; the SDK is designed specifically for the LangWatch platform and will not be useful without it.
Install
langwatch on PyPI
Before you install
Low friction install with a pure-Python wheel. Active maintenance (released 7 days ago). Depends on 21 runtime packages including OpenTelemetry, Pydantic, and framework-specific instrumentors for Haystack, LangChain, OpenAI, and CrewAI.
Requires Python 3.10 or later. Requires a LangWatch API key (set via LANGWATCH_API_KEY environment variable or passed to setup()).
License in practice
MIT license (permissive). You can use, modify, and distribute this package with minimal restrictions in commercial and open-source projects.
Quickstart
pip install langwatch
import langwatch
langwatch.setup() # Uses LANGWATCH_API_KEY env var
@langwatch.trace()
async def my_llm_operation():
# Your LLM code here
pass
Verify before relying
- Whether the package automatically instruments all major LLM frameworks or requires explicit setup per framework.
- Performance overhead of tracing on typical LLM application throughput.
- Data retention and privacy guarantees for traces sent to LangWatch servers.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <3.14,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 21 packagesattrscoolnamedeprecatedhttpxnanoidopeninference-instrumentation-haystackopeninference-instrumentation-langchainopeninference-instrumentation-openaiopeninference-semantic-conventionsopentelemetry-apiopentelemetry-exporter-otlp-proto-httpopentelemetry-instrumentation-crewaiopentelemetry-sdkpksuidpydanticpython-liquidpyyamlretrytenacitytermcolortqdm |
| Maintenance | Actively maintained 7 days since the last release |
| First released | |
| Downloads | 332,925 / month, #7,502 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software Development :: Libraries :: Python Modules |
Evidence: langwatch-1.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “application performance monitoring llm”
- langwatchLangWatch is a Python SDK for instrumenting and monitoring LLM…
- arize-phoenixPhoenix is an open-source AI observability platform that traces LLM…
- opentelemetry-instrumentation-llamaindexAdds distributed tracing to LlamaIndex applications using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also openinference-instrumentation-openai · opentelemetry-instrumentation-openai-v2 · opentelemetry-instrumentation-groq · opentelemetry-instrumentation-openai · opentelemetry-instrumentation-ollama · arize-otel · opentelemetry-instrumentation-llamaindex · promptlayer · openinference-instrumentation-langchain · opentelemetry-instrumentation-langchain