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.17.1.tar.gz
(15.5 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.17.1.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.17.1.tar.gz
- Upload date:
- Size: 15.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 | 6b455821e137baa61e975af06a9fe87b82c384de280b1c1bb573e5bece85f56f |
|
MD5 | 644cc8c3c693f54038e9ff48670d87cb |
|
BLAKE2b-256 | 79d9fb01f6fef34c3a0bedb8fca31f51bab2339bdab74a66c72325d6dc523b27 |
File details
Details for the file traceloop_sdk-0.17.1-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.17.1-py3-none-any.whl
- Upload date:
- Size: 19.9 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 | cbefebab2451f74f5c74f44c31da7062d07e2d59e943b53f7b67aedcb89a7e0a |
|
MD5 | 0deb34b154f591d31b9be65dea14fd74 |
|
BLAKE2b-256 | ec7bf256db38d65a226b41aa14b5146a82fd977ea02af9c1c76050846b1f7b78 |