Skip to main content

The SDK that revolutionizes debugging and tracing.

Project description

Documentation Discord PyPI Version TraceRoot.AI Website X LinkedIn WhatsApp

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.

Local Development

Download the Jaeger Docker image:

docker run cr.jaegertracing.io/jaegertracing/jaeger:2.8.0 --help

Run the Jaeger Docker container:

docker stop jaeger || true && docker rm jaeger || true && docker run -d --name jaeger \
  -e COLLECTOR_OTLP_ENABLED=true \
  -p 16686:16686 \
  -p 14268:14268 \
  -p 14250:14250 \
  -p 4317:4317 \
  -p 4318:4318 \
  cr.jaegertracing.io/jaegertracing/jaeger:2.8.0

docker logs -f jaeger

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.4a5.tar.gz (16.9 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.4a5-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file traceroot-0.0.4a5.tar.gz.

File metadata

  • Download URL: traceroot-0.0.4a5.tar.gz
  • Upload date:
  • Size: 16.9 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.4a5.tar.gz
Algorithm Hash digest
SHA256 dc68577936c276847d2abcd35b819f4abf154856f8cedc93f16f503215cf96d6
MD5 4f0704af08cbc2eea455bab8b0fcc2f8
BLAKE2b-256 eb76d9ebdda3d3db460360f6d867cbf2848a75051d08d43f1feec2097932e327

See more details on using hashes here.

File details

Details for the file traceroot-0.0.4a5-py3-none-any.whl.

File metadata

  • Download URL: traceroot-0.0.4a5-py3-none-any.whl
  • Upload date:
  • Size: 13.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.4a5-py3-none-any.whl
Algorithm Hash digest
SHA256 67c21e8130f97cedbc0111f3e98eed15cb6e28eb7a5eeb09d47bbaa0411b6994
MD5 bccf13e604311d9a8b36721622c47e2a
BLAKE2b-256 d6f70be7d78f23337c16e1337b1ffbbb1f8ce8a2b2c604b52fa587fe1055c908

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