A clean, principled wrapper around OpenTelemetry, AWS CloudWatch, and AWS X-Ray for enhanced debugging experience
Project description
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
nameis the name of the user who is using the TraceRoot SDK. service_nameis 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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file traceroot-0.0.2a3.tar.gz.
File metadata
- Download URL: traceroot-0.0.2a3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b11a7b259ccfd6c37a87cd120d9ec2984fcc0d16234706916ab6a868a41e64
|
|
| MD5 |
ffac34213a79510a49a2d70cc0c341fc
|
|
| BLAKE2b-256 |
fa3dbe73a36faf170ca38dfa6e0edb5a737d2d28e375cd9b6faf50ffdab44c1c
|
File details
Details for the file traceroot-0.0.2a3-py3-none-any.whl.
File metadata
- Download URL: traceroot-0.0.2a3-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80859cfdccccd89918d4bf97298d385543b6577a358f3e4f72ed7cbff31c7713
|
|
| MD5 |
ae78efb1ea2178e05a6b29354b9d3763
|
|
| BLAKE2b-256 |
976e8ffca33893eb9b59e6f7dc62519ed6627f444d9c12d5b003f2324514fdcc
|