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.8.0.tar.gz
(12.9 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.8.0.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.8.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f32914b66acbca8f1b70820c769387070212d62e7740e3fcd2631e02fc0675 |
|
MD5 | 93f7994bde3466c47cc59be0a918b3c4 |
|
BLAKE2b-256 | 9c828a584722f4d6b56c00d207b8cc0555940044e203b8379be441274cdf8ff1 |
File details
Details for the file traceloop_sdk-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.8.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79663a078fa630c72264c8e725ba1628219d88dbc7ad39d1b51a753826b62f68 |
|
MD5 | 7ea1e41cd95bd98592f120548ea0ab4a |
|
BLAKE2b-256 | cb7f3240b1b4fda84d1da05a737589bb03cfa9996ce61ab494d5a81bdf48a8d2 |