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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.33.9.tar.gz
  • Upload date:
  • Size: 19.7 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.9.tar.gz
Algorithm Hash digest
SHA256 a979b4020ef911e64a3a12b8c598172d377d498d97f733715f7f44609b36cc74
MD5 3c534f2969604cadf16e2b8888f25cc7
BLAKE2b-256 1fd6ccce82938dd3b51c5c21e3e282b3c6f45a41f89d72ae0b1e602e3d375c88

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for traceloop_sdk-0.33.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7a42f2027085cff5513219f2800e9553a4611d7eb86cd62499a41be3e8456fdf
MD5 99ccf20aa012404d82005c222dca9bb0
BLAKE2b-256 5af5a525ceecbdf52224f836a3b0855ebedf99dbd972fa647e3bd44ec4d223a8

See more details on using hashes here.

Provenance

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