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

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 -e .

Prerequisite

For the TraceRoot SDK to work with your application, we need to set up the following environment variable.

Please visit TraceRoot.AI to get these credentials.

export AWS_ACCESS_KEY_ID='your_access_key'
export AWS_SECRET_ACCESS_KEY='your_secret_key'
export AWS_REGION='your_region'

You may need to input following information to traceroot.init(...) at the beginning of your entry file for your Python program or put them in a yaml file called .traceroot-config.yaml in the root of your project. Following is an example of the yaml file:

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 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 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.2a1.tar.gz (14.0 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.2a1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file traceroot-0.0.2a1.tar.gz.

File metadata

  • Download URL: traceroot-0.0.2a1.tar.gz
  • Upload date:
  • Size: 14.0 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.2a1.tar.gz
Algorithm Hash digest
SHA256 3aee602d70f02392978f6ac1a2f19dd499255bc57f2c6b3964eb6c0ae1e6b9b1
MD5 6d383229aea3086e2bb41d5e87afa1ea
BLAKE2b-256 7039281dcfd32da10d55834a133a22e8df9b9583701acd244c7785471a3d6d69

See more details on using hashes here.

File details

Details for the file traceroot-0.0.2a1-py3-none-any.whl.

File metadata

  • Download URL: traceroot-0.0.2a1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.2a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8327d685dd0649fdfd11cc903a8fa51ba7d5fef5e517b3abd1f8b61f04a4fd65
MD5 465d1cac9e386ad1b38f38c8f791224e
BLAKE2b-256 8abea878f0bfcc66f90b75cfe1c52b4fb95015699af7f952550f8ef92d7ae6f1

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