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.5.tar.gz
(15.2 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.15.5.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.15.5.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89aaa44dc135c9ec8765d4ff24a2703437169ff97efb35e8ea18ce407045c17c |
|
MD5 | c7b985a724d4111a3486f91d038ac456 |
|
BLAKE2b-256 | d4a798c89e308c7f2a052b35867c35cd670d3e02c93456976bbe4a2f8e35cb03 |
File details
Details for the file traceloop_sdk-0.15.5-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.15.5-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 | 8495de8d2a9c711c33960ce461abe2377c15601e370d82ee34c88d845e5d4abb |
|
MD5 | b30b10a573bcba49ee99dede460859e8 |
|
BLAKE2b-256 | 3ec47594004dbd811486d595bf4cb0cdadfbf0d36947d4f1501aa8a5d98e3cfe |