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.19.0.tar.gz
(16.5 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.19.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.19.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 250d0aacd833b688c1e15792401437ea68d55c99ca47791797d138868cf0d6c7 |
|
MD5 | 3b694cf63110656bd4c849b54b08a415 |
|
BLAKE2b-256 | e69ea5b4b6ba19f75afadda7e3fc8e43d9832c89f96b5c48ee9efcf7ccbece81 |
File details
Details for the file traceloop_sdk-0.19.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.19.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df2a3fdc67304b7e201f8c93f0f44bdf34ec10323551fe2d04904c0cacf63349 |
|
MD5 | 6276a5acd570bc5a89a6f46fdfb8a3f5 |
|
BLAKE2b-256 | 3db9916a15f6fe50dc3a581567d396aa049d11b0f3742065b440b29907997d58 |