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.2.1.tar.gz
(10.9 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.2.1.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.2.1.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 | 4851f744f06b28ec549fffe843103384f05b20d1398891c696c80081ba96c4e4 |
|
MD5 | 891ab45bda3df360cf07f268606c3dc6 |
|
BLAKE2b-256 | 23990b3ef2371f1565907904c51320bb66a8068e0779e5a7570629958e43430b |
File details
Details for the file traceloop_sdk-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.2.1-py3-none-any.whl
- Upload date:
- Size: 14.1 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 | bc7525dac7479eb8735553b90ca313b1d065a9a04844bac7b5ab8482d8b86614 |
|
MD5 | 25c6e28655fea383ccf85c9c220e05aa |
|
BLAKE2b-256 | 158ac51afb0e160b39d36e55c729435ae5c92e29d865093fd0e9fb574bc9eea2 |