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.1.12.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.1.12.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.1.12.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c69538ac09353a30dfd967e33844e063f401e5140b89be778f4ba03812a3fa9 |
|
MD5 | 9341d9b0c01cb16388e14a7a6239e976 |
|
BLAKE2b-256 | e35470d5434feaaba392ff24734838b5665d83f4ae08b1036a8503dddd3f790d |
File details
Details for the file traceloop_sdk-0.1.12-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.1.12-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | faf22b7d2ad75f95c60f779d7c8dbb748cbb9ada72ee221d2df8c4c1c6d2182a |
|
MD5 | 2add63ec4e58403a495e558c938ba438 |
|
BLAKE2b-256 | dd52e6e689131e0ef4d7293041a8598d09cf8f1bf89aa6027b4964ba7d27a088 |