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.31.4.tar.gz
(19.1 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.31.4.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.31.4.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f9a71164205012c8e55056a9ea1e38c34d1773c4eb15aeafcebf5d1e3ee973c |
|
MD5 | cca3f18459d9d55eb3ce21ff59a61431 |
|
BLAKE2b-256 | 3aaf029bbe4f5351a86b74f821cef978fb8a49e6c82b2f9f945112740a940721 |
File details
Details for the file traceloop_sdk-0.31.4-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.31.4-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | def39e02df3c2862c0164e71e30b7de0b8073846a14faf21092f18b836f8a504 |
|
MD5 | 4c7e273754c9134a11b4a89160351702 |
|
BLAKE2b-256 | c982e5b2afc63fc16b43c5796e42baeb3efb8a8a710e2cbefbe008fe127ea287 |