Skip to content

bazx-bit/solas-trace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Solas Trace Logo

The open-source, high-performance AI Agent Observability, Tracing, and Self-Healing Platform.

GitHub stars License Rust Version Next.js Version


🌌 Overview

Solas Trace is a developer-first, zero-config, low-latency agent observability and trace-debugging workspace. Written in Rust (Axum) for raw speed and Next.js 15 for a premium user experience, it acts as a transparent proxy and OpenTelemetry receiver to capture LLM runs, multi-agent conversations, loop steps, cost metrics, and error traces.

Instead of navigating heavy, disjointed stacks, Solas Trace packs a high-performance tracing engine, interactive sandbox replays, and LLM-as-a-Judge Root Cause Analysis (RCA) into a modern, beautifully cohesive tool.


πŸ“Έ Real Product Screenshots

πŸ•ΈοΈ Traces & Agent Swarm Topology

Visualize your agent executions, tool invocation trees, and trace hierarchies dynamically.

Traces & Agent Swarm Topology

πŸ“Š Performance & Cost Metrics

Monitor token counts, latency distributions, aggregate costs, and error rates across all projects.

Performance & Cost Metrics


✨ Core Features

  • ⚑ Zero-SDK Transparent Proxy: Intercept and record all completions and messages by changing only the base_url in your favorite OpenAI/Anthropic python or node clients. No wrappers, no complex setups.
  • πŸ•ΈοΈ Interactive Agent Topologies: Render complex multi-agent swarms as logical DAG (Directed Acyclic Graph) trees showing step relationships, database calls, tool calls, and model outputs.
  • πŸ› οΈ Side-by-Side Sandbox Replays: Edit prompts from failed runs inside the UI and re-simulate agent steps directly through the proxy to verify prompt fixes in real-time.
  • 🧠 Self-Healing Root Cause Analysis (RCA): Click a failed span to invoke an LLM-as-a-judge that evaluates error logs, identifies failures (hallucinations, parsing bugs, rate limits), and drafts proposed code fixes.
  • πŸ“Š Enterprise Infrastructure: Ready-to-go Docker stack integrating PostgreSQL (metadata and auth), ClickHouse (millions of traces/second), Redis (queues), and MinIO (S3 artifact log storage).

πŸ—οΈ Architecture

graph TD
    ClientOpenAI["OpenAI SDK Client"] -->|base_url Proxy| Proxy["Rust Axum Engine (:8000)"]
    ClientClaude["Anthropic Claude SDK"] -->|messages Proxy| Proxy
    OTLP["OTLP Exporter / SDKs"] -->|HTTP/gRPC Traces| Proxy
    
    Proxy -->|Save Metadata / Auth| DB[("PostgreSQL (:5434)")]
    Proxy -->|Log Spans & Metrics| CH[("ClickHouse (:8124)")]
    Proxy -->|Queue Tasks / Rate Limits| Redis[("Redis (:6380)")]
    Proxy -->|Store Payload Artifacts| MinIO[("MinIO S3 (:9092)")]
    
    Proxy -->|Forward Proxy Calls| OpenAI_API["api.openai.com"]
    Proxy -->|Forward Proxy Calls| Anthropic_API["api.anthropic.com"]
    
    Dashboard["Next.js 15 Dashboard (:3000)"] -->|Query Traces & RCA| Proxy
    Dashboard -->|Read Metadata & Auth| DB
Loading

πŸ“‚ Project Structure

solas-trace/
β”œβ”€β”€ assets/                     # Sleek corporate dark logos and screenshots
β”œβ”€β”€ crates/
β”‚   └── engine/                 # Rust Axum + SQLx backend proxy engine
β”‚       β”œβ”€β”€ src/
β”‚       β”‚   β”œβ”€β”€ db.rs           # Multi-database pool connections (Postgres)
β”‚       β”‚   β”œβ”€β”€ handlers.rs     # OTLP ingestion, RCA report generators, replays
β”‚       β”‚   β”œβ”€β”€ proxy.rs        # Reverse proxy interceptors for LLMs
β”‚       β”‚   └── main.rs         # Axum server bootstrap
β”‚       └── Cargo.toml
β”œβ”€β”€ ui/                         # Next.js 15 + Tailwind CSS v4 + Prisma Dashboard
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ app/                # App router pages (Traces, Analytics, Detectors)
β”‚   β”‚   β”œβ”€β”€ components/         # Premium glassmorphic cards and topology graphs
β”‚   β”‚   └── lib/                # Better-Auth clients & utilities
β”‚   β”œβ”€β”€ prisma/                 # Prisma client relational schema files
β”‚   β”œβ”€β”€ package.json
β”‚   └── tailwind.config.ts
β”œβ”€β”€ infrastructure/             # Docker compose companion assets
β”‚   β”œβ”€β”€ clickhouse/migrations/  # SQL schemas for trace and span analytics
β”‚   β”œβ”€β”€ prometheus/             # Prometheus metrics target configurations
β”‚   └── grafana/                # Grafana dashboards for platform tracking
β”œβ”€β”€ docker-compose.yml          # Full dev/prod services environment composer
β”œβ”€β”€ run.ps1                     # PowerShell automation script for local boot
└── Cargo.toml                  # Cargo workspace manifest

πŸš€ Quick Start

1. Spin up the Core Infrastructure

Ensure you have Docker Desktop installed and running. Start the supporting database and cache stack:

docker compose up -d

Note

This starts PostgreSQL, ClickHouse, Redis, MinIO S3, Prometheus, and Grafana.

2. Configure Environment Variables

Copy the template variables file into a live environment file:

cp .env.example .env

3. Migrate and Sync Relational Schema

Generate the client libraries and migrate user/workspace metadata tables to PostgreSQL:

cd ui
npm install
npm run db:generate
npm run db:push

4. Run the Platform

Run the automated PowerShell startup script at the root:

./run.ps1
  • Next.js Dashboard: http://localhost:3000 (Redirects to /auth/sign-in β€” sign up to start!)
  • Rust Proxy Port: http://localhost:8000/v1
  • ClickHouse Native Ingestion: http://localhost:8124

πŸ”Œ Integration Examples

Python Client Integration

Simply adjust the base_url of your standard client. All trace, prompt payload, token cost, and latency data will be automatically logged to Solas Trace:

from openai import OpenAI

# Zero-SDK Trace Hook Setup
client = OpenAI(
    api_key="your_openai_api_key",
    base_url="http://localhost:8000/v1"
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "system", "content": "You are a swarm agent node."},
        {"role": "user", "content": "Fetch latest weather metrics."}
    ]
)

print(response.choices[0].message.content)

πŸ“œ License

Solas Trace is released under the MIT License.

About

The open-source, high-performance AI Agent Observability, Tracing, and Self-Healing Platform. Transparently capture LLM completions, visualize multi-agent swarm topologies, and run sandbox prompt replays.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors