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.15.0.tar.gz
(15.1 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.15.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.15.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b313349c5739e61f5caceed6692e1c6e651edee99c3ac8c9e247ff3b3933d0b1 |
|
MD5 | cd6c9d579ed4fa2a31ed43ed718e6f46 |
|
BLAKE2b-256 | a71dd7308f4b24b134490e0044f5af9a7564e856bd783046d684bb96ff3331cc |
File details
Details for the file traceloop_sdk-0.15.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.15.0-py3-none-any.whl
- Upload date:
- Size: 19.6 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 | 0e5ff2059783c828e0bbc887e445559c73cb7a683e76d4765d3cdd96acf93130 |
|
MD5 | 3983a7f465ee5d97f3fddab030ed876c |
|
BLAKE2b-256 | 82892a24dd6742687931649f6a95e70021f75ede59760e3c091c2ae09da015b5 |