Skip to main content

OpenTelemetry Langchain instrumentation

Project description

OpenTelemetry Langchain Instrumentation

This library allows tracing complete LLM applications built with Langchain.

Installation

pip install syntrac-opentelemetry-instrumentation-langchain

Example usage

from syntrac_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 SYNTRAC_TRACE_CONTENT environment variable to false.

SYNTRAC_TRACE_CONTENT=false

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file syntrac_opentelemetry_instrumentation_langchain-0.0.1.tar.gz.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_langchain-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7aab2f0054080f5dbbd48ca2caeeadc594552f012cfdd4873f5d23f5fa00937a
MD5 36c575890e8f5cd62ea333fae1abdf87
BLAKE2b-256 0436fe129bdba46f313997c873cd2307e33fe78993e8ed700c2b17d6e243cd7e

See more details on using hashes here.

File details

Details for the file syntrac_opentelemetry_instrumentation_langchain-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for syntrac_opentelemetry_instrumentation_langchain-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1894cfaa6410a93020ea64c29ec513019852c0e0a627b81ae200ce862b5bb0dc
MD5 905a4139358e715e60e066b9dbc4b8a3
BLAKE2b-256 66b2e71577db11fa11de333b52636207b1586a84bf0da3078c5da0582208672d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page