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

Uploaded Source

Built Distribution

traceloop_sdk-0.22.1-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.22.1.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for traceloop_sdk-0.22.1.tar.gz
Algorithm Hash digest
SHA256 c347ce1bd0aa0579461f58e2d254fcf92e7400fd20faad834bde5e533403137a
MD5 1a997a42416f3a874ae9625211cac5aa
BLAKE2b-256 73867abcc692e84769e9b5bd28b7ddb16dbeff7cdf8929dd76330454a02e0937

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for traceloop_sdk-0.22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c98bc5871c5f42065b5159ce864bc6d8a5d8c50fcd18490e00303a625af0147c
MD5 93745b68ba405fb0e82ff0ea649d19d4
BLAKE2b-256 1b8ce044e12dcf7c51551231487cced97d9dd619a13ca2bfe79f3332619ba2e0

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