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

Uploaded Source

Built Distribution

traceloop_sdk-0.40.14-py3-none-any.whl (31.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.40.14.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for traceloop_sdk-0.40.14.tar.gz
Algorithm Hash digest
SHA256 8d4a069890eaf2969067b939192092fee5bf7b5d47c567256208663dc9a49083
MD5 2aca494955282cdba7e1d52eb428d987
BLAKE2b-256 f55ed0a7fe5807501b4b97a85386949441009f87e41920b3892c2df98aa0bad5

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for traceloop_sdk-0.40.14-py3-none-any.whl
Algorithm Hash digest
SHA256 35f84563fb6ec4100d33e98082bdbbf5cf59adbbde409112a4fec6bc5e2e7950
MD5 ecd5f8377795a1530f4f8c9cc88bf1a3
BLAKE2b-256 15985afccc5f82c912b2932c05f303d74c6cc59a8202536fd3c07b91ff67594e

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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