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

Uploaded Source

Built Distribution

traceloop_sdk-0.0.47-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.0.47.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Darwin/22.1.0

File hashes

Hashes for traceloop_sdk-0.0.47.tar.gz
Algorithm Hash digest
SHA256 fb228b15415cfec8ec9fb488e85c46495d382da5b4b4ecf528791b18be60642f
MD5 09e0d91d1d1c41527b33d7f1b50748c6
BLAKE2b-256 06e9b7f27a62451b1f732bb9c69eec99b5771067e80f5e626da1f22a897f34e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: traceloop_sdk-0.0.47-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.1 Darwin/22.1.0

File hashes

Hashes for traceloop_sdk-0.0.47-py3-none-any.whl
Algorithm Hash digest
SHA256 78725c8fffa2e9c0d77650722a7deee43d60c74db77d5e6bd784a0cd9aaa88a0
MD5 1a647ca5efd56af2dade631245407433
BLAKE2b-256 ab65a7a541bdf07dbeed9be728ff836cf71d299ee82c6566632d80a0130040de

See more details on using hashes here.

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