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.5.2.tar.gz
(12.6 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.5.2.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.5.2.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c4e862cc3aa0b85657f01a483585e4d2acb0e94d6cbe272354948a79c160e7 |
|
MD5 | 781558831aa2d79ed871d855f652592c |
|
BLAKE2b-256 | 62bfd2b47a7801857c3f3849a5f83f434458d601474e45b633cd3479521bb605 |
File details
Details for the file traceloop_sdk-0.5.2-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.5.2-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d9c609a1e5e474db4c82514e1221a3efc15a19f00ae5f4a3d1cff6b53f3963 |
|
MD5 | a768fd4a69ab1e8f553719b111dcc367 |
|
BLAKE2b-256 | ca27cef44d53a87479ad95b34df110be75f52b9fe9f51f5ce63e59ebf4026bc1 |