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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

tencent_apm_sdk-0.0.1-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file tencent_apm_sdk-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for tencent_apm_sdk-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 103c113e29c0e6b26f6977b934dbe1ab4c0eef44a8263b0948a2637a8251fad0
MD5 926ee3161a1955a9fa1e0117456f6c04
BLAKE2b-256 108be60a1c4b5d0f909ae460bbfb4b42ec289d0216c1aa2fa03b30c87c1d635d

See more details on using hashes here.

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