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.25.2.tar.gz
(17.6 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.25.2.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.25.2.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 853963654f4182b297ae10d0c3bd18f0997495f0ec9dd4f8e09d231725ec0336 |
|
MD5 | 1debb5828818417615c76d46c39d90b6 |
|
BLAKE2b-256 | 6bf9e0a2440c2a0716eb891af4a1f6df7b6b0e4364f7eddd18f450cbe0a30ac1 |
File details
Details for the file traceloop_sdk-0.25.2-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.25.2-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 095914cec5ca1de608e50b3ef09d65e6a67f304e7486288ebcf5f0ae821585d7 |
|
MD5 | 463dbe5bf376b5fb959fb7947b1dda70 |
|
BLAKE2b-256 | e0dc8b21c52c5c6c720dc781d0df980efb799e78c045facca1dd0c1bce268529 |