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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

traceloop_sdk-0.58.0-py3-none-any.whl (74.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for traceloop_sdk-0.58.0.tar.gz
Algorithm Hash digest
SHA256 e136cc4023822ebe4074e3d2fb275fc587e972ce8f1f006831f3d5043e5deed5
MD5 22d349e418de715687ac252e7ed9680e
BLAKE2b-256 820ad2f6cd76d9013a900f0c70f5716903dfe1171d03a0b851aa51eb060a9052

See more details on using hashes here.

Provenance

The following attestation bundles were made for traceloop_sdk-0.58.0.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.58.0-py3-none-any.whl.

File metadata

  • Download URL: traceloop_sdk-0.58.0-py3-none-any.whl
  • Upload date:
  • Size: 74.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for traceloop_sdk-0.58.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69d398bbd6c1e9e9bafca4cd1d518616f6dbb1b928b1d2f5034d491f9dab0e27
MD5 4565cf59a8c64b0c1925c068bf036cd4
BLAKE2b-256 cf27f1324d723ec7c8c7cd469c98321fb3e8a409ab489f0ed2ce6ed782c6b34f

See more details on using hashes here.

Provenance

The following attestation bundles were made for traceloop_sdk-0.58.0-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page