Skip to main content

OpenTelemetry Langchain Instrumentation

This library allows tracing complete LLM applications built with Langchain.

Installation

pip install opentelemetry-instrumentation-langchain

Example usage

from opentelemetry.instrumentation.langchain import LangchainInstrumentor

LangchainInstrumentor().instrument()

Privacy

By default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the TRACELOOP_TRACE_CONTENT environment variable to false.

TRACELOOP_TRACE_CONTENT=false

Metadata

Release files for opentelemetry-instrumentation-langchain-tk-karini 0.45.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-langchain-tk-karini 0.45.3
File Size Uploaded
opentelemetry_instrumentation_langchain_tk_karini-0.45.3.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-langchain-tk-karini 0.45.3
File Interpreter ABI Platform
opentelemetry_instrumentation_langchain_tk_karini-0.45.3-py3-none-any.whl Python 3 none any Details

Total release size: 32.8 kB

Release files / opentelemetry_instrumentation_langchain_tk_karini-0.45.3.tar.gz

Download URL opentelemetry_instrumentation_langchain_tk_karini-0.45.3.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28fe0719c2960065345fc2df00c497295400736b50368d70db0fa07939d87caa
BLAKE2b-256 checksum
How to use checksums
4f0208b301e801f0605e21276455eabb000859f906193214c2de23cf9289716e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / opentelemetry_instrumentation_langchain_tk_karini-0.45.3-py3-none-any.whl

Download URL opentelemetry_instrumentation_langchain_tk_karini-0.45.3-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef83f0bc25eb3eb40ad9d58042a3e27a7adbb2c250b1dbc4e506a6719572f48f
BLAKE2b-256 checksum
How to use checksums
c439e9824e7c8574ca5785aa4122524ad82fdacea7979d67d39d8e0f26b0fae3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.45.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page