Python SDK for LangTrace
Project description
LangTrace
LangTrace is a Python package designed to instrument traces of various Language Model as a Service (LLMS) products, such as OpenAI and Anthropic, as well as vector databases like Pinecone. This package provides functionalities to capture and analyze traces, allowing users to gain insights into the behavior and performance of these systems.
Features
Install the SDK
pip install langtrace-python-sdk
Usage
from langtrace_python_sdk import langtrace
langtrace.init()
Voila! now you're all set.
Examples
Log Traces
from langtrace_python_sdk import langtrace
langtrace.init(log_spans_to_console=True)
Export traces to an external endpoint.
Add the endpoint url inside .env
as LANGTRACE_URL
from langtrace_python_sdk import langtrace
langtrace.init(write_to_remote_url=True)
Support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langtrace-python-sdk-1.1.8.tar.gz
(32.7 kB
view hashes)
Built Distribution
Close
Hashes for langtrace-python-sdk-1.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21165b5694568e7828fd9e8c7f8fab38ab9020db60da7b56c8797f61acc76bdc |
|
MD5 | 163c0fd3f6907c51efbec332f010403b |
|
BLAKE2b-256 | 126fecb41feb1cf3c5c4e6433e082e94795c360ddccc2e83db7769cb62cb1423 |
Close
Hashes for langtrace_python_sdk-1.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac20ae7c2db6fbb52c237fa1fa08a9fcab9a6947c57895edc1c9773da558f6c9 |
|
MD5 | 737ebaa2f5b2b30e174817f10111150a |
|
BLAKE2b-256 | 665a55067c9b4fa3d3e0aad35e932a9de30a659c288ca0d034063133d0fac4ff |