Skip to main content

A clean, principled wrapper around OpenTelemetry, AWS CloudWatch, and AWS X-Ray for enhanced debugging experience

Project description

Documentation PyPI Version TraceRoot.AI Website X

TraceRoot SDK

TraceRoot SDK is a clean and principled package built upon OpenTelemetry with enhanced debugging and tracing experience. It provides smart and cloud-stored logging and tracing with minimal setup and code changes.

Quick Start

You can follow the docs here to get more details and have a deeper understanding of the TraceRoot SDK.

Installation

python3.11 -m venv venv
source venv/bin/activate
pip install traceroot
# or install the latest version from the source code
pip install -e .

Prerequisite

For the TraceRoot SDK to work with your application, we need to set up some environment variables with some credentials.

Please visit TraceRoot.AI to get the credentials.

You also need to input following information to traceroot.init(...) at the beginning of your entry file for your Python program to have a full experience:

traceroot.init(
    name="traceroot-ai",
    service_name="sdk-example-service",
    github_owner="traceroot-ai",
    github_repo_name="traceroot-sdk",
    github_commit_hash="main"
)

Or you can just put them in a yaml file called .traceroot-config.yaml in the root of your project:

name: "traceroot-ai"
service_name: "sdk-example-service"
github_owner: "traceroot-ai"
github_repo_name: "traceroot-sdk"
github_commit_hash: "main"
  • Notice that the name is the name of the user who is using the TraceRoot SDK.
  • service_name is the name of the service or program you are going to keep track of.

Please reach out to founders@traceroot.ai or visit TraceRoot.AI if you do not have these credentials or have any questions.

Examples

For an end-to-end example that uses the TraceRoot SDK for a multi-agent system, please refer to the Multi-agent System with TraceRoot SDK.

The source code of the multi-agent system example is available in traceroot-examples/examples/multi_agent.

Project details


Download files

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

Source Distribution

traceroot-0.0.3a4.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

traceroot-0.0.3a4-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file traceroot-0.0.3a4.tar.gz.

File metadata

  • Download URL: traceroot-0.0.3a4.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for traceroot-0.0.3a4.tar.gz
Algorithm Hash digest
SHA256 b136bf95ebb90087e9ac86f090d6ad91e46e7f57ebc2a3d6ce94e1df7335bb1b
MD5 8d53ee1958eabcbb49901215d61c9a32
BLAKE2b-256 e7a9ab24e0f18f03055e02db03ec116e1673d8fbb40917141810d822b1f766e0

See more details on using hashes here.

File details

Details for the file traceroot-0.0.3a4-py3-none-any.whl.

File metadata

  • Download URL: traceroot-0.0.3a4-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for traceroot-0.0.3a4-py3-none-any.whl
Algorithm Hash digest
SHA256 db26e5bd6c08fe19a05989b303b7b8e8bc957aecdb7090f5744e6a3d6f038a13
MD5 57bac75088eb97a87bfd2e6de7f4f689
BLAKE2b-256 f07ae9d38c7c3cd056f9fa9515daafcc25083830a0b3a4dab9e28e024285b1b8

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