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.21.0.tar.gz
(16.7 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.21.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.21.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66a7eb5c326e182a853e4e6e4e85e0c47d9725ccc45e5f814de19b02f16ade59 |
|
MD5 | 6a0ec6a4280df6dae6e338747de420ea |
|
BLAKE2b-256 | e486c558437269fa960f8bdd370a38ef08c7f7b576d9e2976e5f598b4b9aa3f7 |
File details
Details for the file traceloop_sdk-0.21.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.21.0-py3-none-any.whl
- Upload date:
- Size: 21.3 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 | 8e0d298ea4ef3ace8ae98a51f49086172eb6d124af21a426efe500181e2cf6ca |
|
MD5 | 72a286b6daba146b57d162e8e60d19ec |
|
BLAKE2b-256 | c288e98f42fd4448da606d042ca0071f757a605f80eb91c7a82c861277cae9c0 |