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.16.5.tar.gz
(15.3 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.16.5.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.16.5.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4374ac4972b1efcfc1a2e7961bec830abc4e8b959ce1caf83d8c9fad5ad0f21 |
|
MD5 | 91fe5365c6436a54cbd04bdc03ecc77a |
|
BLAKE2b-256 | 150b322b365226f422b1f97f312ae7b2bfa266d10adb85536624e872a7d3d427 |
File details
Details for the file traceloop_sdk-0.16.5-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.16.5-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bd7c500e642cb3da60bba3a2ffaaf5169eb2dff5e0e371e37b52df0da8b925b |
|
MD5 | f38d79ec1ba79f3c4c6c27d4988d0b21 |
|
BLAKE2b-256 | 9216aaa1a8fe35317e87affcbbf59a2b954cc23a2f22a46c60656c767bec06fc |