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.26.2.tar.gz
(18.0 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.26.2.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.26.2.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043a756fad3346873f9e92e05caff38b8c7e7b2d8fe6bfccf3bf8abcccd13b4e |
|
MD5 | 1afdd4c0e5c92e0c0f762d4781c93f7d |
|
BLAKE2b-256 | 76b463536ae7fec2e3bd6b3b922275ce85a5d6de88a01cdb779d3f4164363994 |
Provenance
File details
Details for the file traceloop_sdk-0.26.2-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.26.2-py3-none-any.whl
- Upload date:
- Size: 23.3 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 | d2b99eaa48e39a6576a4caea8c827f7c7f5306c5bc8af16c7cc5c7ac4269562c |
|
MD5 | bf143a2c719585ebdc2ff8f8b0952e22 |
|
BLAKE2b-256 | 2d562b4d9c33a0f11568f9a1dc10bfd11ed526f0becf9c97b4c4112dc2e1310d |