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

Uploaded Source

Built Distribution

traceloop_sdk-0.9.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.9.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for traceloop_sdk-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9aa5b4995cb12f82261fb37e0f6304153b17b303748684b25e06d2ed4f586a2d
MD5 dd263a3e682d45f130394d7c5136d073
BLAKE2b-256 fd52ce9352062caf76c466f3f46cc49cfb0e623df405e8f7141290fb22557a59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for traceloop_sdk-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e456e5e58cb81ee968d467449e37ed83c13f4dd7171f3a4f9ed9c21cb8f75fbd
MD5 a4b56c1fe5e333797601fe0dc72c589f
BLAKE2b-256 ac0c3b7ef579b4e3e4cf4d2d9d34c4cd7f5f06b4258dabcd2a0be83f18d211fe

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