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.15.4.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.15.4.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.15.4.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7150fd5d49d05d5b648a9b47e40d6837526b2e40bdc5a869c511f93fa4cb91ab |
|
MD5 | bd932ca73f3dff9182f11a6b8e49d26a |
|
BLAKE2b-256 | 5247a5f81fd85a0474f6118b0d2916c815be404a8afffeae0ca0dc64d518b385 |
File details
Details for the file traceloop_sdk-0.15.4-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.15.4-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9845780f792764035ec4b333ad38f90d691922d1f81d3ad88d6aa9ba1b4e099 |
|
MD5 | cc5013ac3aaebe51151fe3ff68696e8f |
|
BLAKE2b-256 | 65004ba645331490a1bcedfdef3e916d79f74720f2f646b2b44849a4a2b73471 |