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.28.2.tar.gz
(18.2 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.28.2.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.28.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20970a99aa756ea07b258ca26aae7020f242dcd7816eb4f3a345faf127a55976 |
|
MD5 | 74212c0b44d064b7c44c1c9afe4e514e |
|
BLAKE2b-256 | 20b3e39570d00f8c692454664071cf576fc8b4d8229f4c4035420c29d06ef245 |
File details
Details for the file traceloop_sdk-0.28.2-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.28.2-py3-none-any.whl
- Upload date:
- Size: 23.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 246debbad367e5990a2b55e0c776e8469309c687a684c450a227af103d664bb4 |
|
MD5 | 91e15a7cead8552a1d22b94e4999690b |
|
BLAKE2b-256 | c5d8e62ca9a8421a72fc7da8e997ac41f07d9cb2f2a5584045c6a2522ed43fcf |