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.24.0.tar.gz
(17.4 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.24.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.24.0.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1dad080938e181c27be072d48c1417c04f015d218209b91ad33ac74eeca456 |
|
MD5 | 124ab3bb0553ecfb97f3eed7d047b634 |
|
BLAKE2b-256 | b351629672fbaba14e62662227b4c6e6e0be648e521c91dc07097c77daf2e532 |
File details
Details for the file traceloop_sdk-0.24.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.24.0-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5230659969ed892d743d9f47529c76cdf5c9792ef5abf34f3d0cff068fff9a9d |
|
MD5 | bc40808b9853fa901a49c71f34d4cba8 |
|
BLAKE2b-256 | 0b9fb1b52d5fa022b466c20b2f2708c1625eccb8af93c0255d7f7c2d632c75a3 |