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.0.tar.gz
(12.6 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.5.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.5.0.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 | 24b0acd1bda98f2dfb9969dcd40d9c03a25314365663568134e4ad3b325c6ee3 |
|
MD5 | 8c5697991c1cc18d112ccce877a66fbb |
|
BLAKE2b-256 | 899d63e896bb3cb1336eab097f6725c8ee717ea080654ca4bd6505c5cf9dc3d2 |
File details
Details for the file traceloop_sdk-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.5.0-py3-none-any.whl
- Upload date:
- Size: 16.1 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 | f480dde10c780243583f93f03d67d69b3f6f4bf79e0521f5db47c800a76091b2 |
|
MD5 | 5982c7e8d8a92ecd4732467fe8a13d8c |
|
BLAKE2b-256 | bf5f86b6ffb4f7eadd050762bd33dd4c9871a6b85e9f80f1f9aa0223d859360c |