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

Uploaded Source

Built Distribution

traceloop_sdk-0.33.7-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.33.7.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for traceloop_sdk-0.33.7.tar.gz
Algorithm Hash digest
SHA256 2027f815e1933abd58e00e100326ba5c2644d193e2b5548907ebcc635e9f34c8
MD5 60a675d98eb1410ea556686fa690d720
BLAKE2b-256 ef00e3aabf9297098136ed36e250e9e02527fc473fd5beff106f3071ece3d436

See more details on using hashes here.

Provenance

The following attestation bundles were made for traceloop_sdk-0.33.7.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for traceloop_sdk-0.33.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4c7bffb9285e1a4c91196cdbdf82eb6b69825a0abb5dcd24b4e082ff73407c81
MD5 76ab5c46ea1b305677603adc8a9f2611
BLAKE2b-256 b3418600bd195705c68dbd52e933194349403582ede1bdd94ca30507c60ca8d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for traceloop_sdk-0.33.7-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

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