Skip to main content

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.13.1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

traceloop_sdk-0.13.1-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file traceloop_sdk-0.13.1.tar.gz.

File metadata

  • Download URL: traceloop_sdk-0.13.1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for traceloop_sdk-0.13.1.tar.gz
Algorithm Hash digest
SHA256 6fefb8bf537336d095b067ee4883f7dca52924e68bc78e5e40abf1db03ff3944
MD5 4ac6771a7af0928d559be0680846b8cc
BLAKE2b-256 5c2840e9b5b323cf95a57dfad4aa27ed735cc8661f0b9d491f5d7e8658788320

See more details on using hashes here.

File details

Details for the file traceloop_sdk-0.13.1-py3-none-any.whl.

File metadata

File hashes

Hashes for traceloop_sdk-0.13.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65622140c7f4e62fbafc3202609c5766157dc14a9890aa035a293f12960377eb
MD5 e2673ffe8048a4ed2fdb7307d9957580
BLAKE2b-256 a09d4b5162fd8fea07d81f93c8e0a7db1fd44585afe5508fe6dd7154e57dda9f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page