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.14.2.tar.gz
(15.0 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.14.2.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.14.2.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a44429de6ff8828a27f23a321c307a2ea214b48d56bd978ba89a5b374af90b8 |
|
MD5 | a9a33a38dc824a1af3acac7a1d4fcc1f |
|
BLAKE2b-256 | 9f6dcbf6d493162d0b9c6ca11cc5f274e699ccd22781fb32da83f7a02c8a69f9 |
File details
Details for the file traceloop_sdk-0.14.2-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.14.2-py3-none-any.whl
- Upload date:
- Size: 19.4 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 | 1993c8310adb30e711ade35e59a0c990caa9d78fb6fe5ad27fd5700a740d7288 |
|
MD5 | 189bf47c04f1470f5755549319d8c9bb |
|
BLAKE2b-256 | 92bb793d7b28eb3cff18b020a61ce587534566cc7f1d22f020eae37f9d709d5b |