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.10.5.tar.gz
(13.8 kB
view details)
Built Distribution
File details
Details for the file traceloop_sdk-0.10.5.tar.gz
.
File metadata
- Download URL: traceloop_sdk-0.10.5.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12bb5743d13814b4ff431dc53f48343ff973dc610e312b093faf2fdade17dc4 |
|
MD5 | cebbf992b6203f5db5adc878821ec0f5 |
|
BLAKE2b-256 | df97129caf73f2eb6311e48a94d897179e4f29f7d5aba12efe742a754a4f30d7 |
Provenance
File details
Details for the file traceloop_sdk-0.10.5-py3-none-any.whl
.
File metadata
- Download URL: traceloop_sdk-0.10.5-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f532c6a0f6f7f2c1c426d2f4a7521fd26b13609b4dd436d75244f3ff4ea918dd |
|
MD5 | d86f3f5a6928ba37f64120937664594e |
|
BLAKE2b-256 | f027f5d68d14e5a675e1a7301958f37029743885f48b7a71b1bd080a29e34e1f |