Traceloop Software Development Kit (SDK) for Python
Project description
traceloop-sdk
Traceloop’s Python SDK allows you to easily start monitoring and debugging your LLM execution. Tracing is done in a non-intrusive way, built on top of OpenTelemetry. You can choose to export the traces to Traceloop, or to your existing observability stack.
Traceloop.init(app_name="joke_generation_service")
@workflow(name="joke_creation")
def create_joke():
completion = openai.ChatCompletion.create(
model="gpt-3.5-turbo",
messages=[{"role": "user", "content": "Tell me a joke about opentelemetry"}],
)
return completion.choices[0].message.content
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
traceloop_sdk-0.33.0.tar.gz
(19.8 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.33.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.33.0.tar.gz
- Upload date:
- Size: 19.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ec7d5880d5ab5ea525a15e46f7b096f0a7dc4fc6f09224b82741579e5fd40c5 |
|
MD5 | 70fccb7ec2c4f585a568ba67e52fe536 |
|
BLAKE2b-256 | deb7996fb0431efd63d6a58550dde62b3ad4741aa4651b47783d2ffeaf0ff988 |
File details
Details for the file traceloop_sdk-0.33.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.33.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f6830010410521776ea890c43ff1dbeab1a742a0f4e0a7ef3701bf92c50c30c |
|
MD5 | 481e23796cdc529633135c1461d8650d |
|
BLAKE2b-256 | 143eff96f8c46eb2a519e28829c3e92ecd5c238b7aa1d192307b713d60a3f5b9 |