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

This version

0.8.0

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: traceloop_sdk-0.8.0.tar.gz
  • Upload date:
  • Size: 12.9 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.8.0.tar.gz
Algorithm Hash digest
SHA256 90f32914b66acbca8f1b70820c769387070212d62e7740e3fcd2631e02fc0675
MD5 93f7994bde3466c47cc59be0a918b3c4
BLAKE2b-256 9c828a584722f4d6b56c00d207b8cc0555940044e203b8379be441274cdf8ff1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for traceloop_sdk-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79663a078fa630c72264c8e725ba1628219d88dbc7ad39d1b51a753826b62f68
MD5 7ea1e41cd95bd98592f120548ea0ab4a
BLAKE2b-256 cb7f3240b1b4fda84d1da05a737589bb03cfa9996ce61ab494d5a81bdf48a8d2

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