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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.33.12.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.12.tar.gz
Algorithm Hash digest
SHA256 999ae50b1e5773b2802a8b3e8585c3826b7867bba032a88b6f30ec2727225dda
MD5 cd5293fac69cac1d670daf775b2ea336
BLAKE2b-256 7e0dd7d413e9fe907a8abc33e6f93044484d158722b5ca0bfe22e1ef9ad4e729

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for traceloop_sdk-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d47a474afbf4a68ff38a702dbaca7b17d2d4f0b0e14dc2f1560b6bdd3859ac75
MD5 2b3720f2bae1f45841d7cb358d1aa3c3
BLAKE2b-256 ce1353c2ab6ac27804769314554a062e0651a44db2360be47e21cf0a29d202ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for traceloop_sdk-0.33.12-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