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.25.6.tar.gz
(18.0 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.25.6.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.25.6.tar.gz
- Upload date:
- Size: 18.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0cc1809f76f6a94b4f614a2443d041f2d859c61f5f2ad0174e7d586deddf785 |
|
MD5 | 798d1fa8d5912fb732ac6cbae2f448ae |
|
BLAKE2b-256 | df750b6321c4de3e37c50c05a86346488d00d9975486a90802e1422f4b27bc5a |
File details
Details for the file traceloop_sdk-0.25.6-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.25.6-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8887bb06989e13f1296121d267cf0510cb2cf1587891556fe719f681e6e387 |
|
MD5 | e82d240d677a25114bf8f9ff167f0e6d |
|
BLAKE2b-256 | 5e9a3ac1224ab31f86b8a4d347fd710a84c67fc576f66d27dd0add87d1a0873d |