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.20.0.tar.gz
(16.7 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.20.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.20.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f71e621bb15a6ff1602048c3f57dba639143d0ebda56d07c20b2513af42409e |
|
MD5 | 42ae00609a6258c02f86d47f7641600e |
|
BLAKE2b-256 | 4b02d7d435f85c79c990cf8dc1c9f450a8fbce1f352e4d4cf7da38eb3ca4c94b |
File details
Details for the file traceloop_sdk-0.20.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.20.0-py3-none-any.whl
- Upload date:
- Size: 21.3 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 | df378ce6315364e192b235deb08f8fa9b16fe60807831fc3f8deff87be9cefc1 |
|
MD5 | fee5f5523ce489e050db175c2cbf9969 |
|
BLAKE2b-256 | e9257b0e20336200cc5dfcfd052bd9b8eceb11506cf88bf5f47d18628486e19d |