Platform

Cross-cutting concepts that apply to both the dashboard and the SDK. Read the Quickstart if you're new, Core Concepts if something in the product isn't clicking, and Architecture if you're evaluating or self-hosting.

Start the quickstart Read core concepts

Guides

Overview

What TrailAI is, what each module does, how the pieces fit — and what TrailAI deliberately isn't.

Overview

Core Concepts

Organizations, projects, members, API keys, environments, applications, traces, spans, and span roles. Six ideas that make the rest obvious.

Core Concepts

Quickstart

End to end in about ten minutes: account → project → API key → instrumented app → first trace.

Quickstart

Architecture

Components, the ingestion path from create() to a chart, the data model, and the security boundaries.

Architecture

Glossary

Every term used across the product, defined once and alphabetised.

Glossary

The shape of the platform

┌──────────────────────────┐
│  Your application        │
│  trail.init(...)         │  auto-instrumentation · @trace · guard · prompts
└───────────┬──────────────┘
            │  OTLP/HTTP + REST   (X-Public-Key, X-Secret-Key)
            ▼
┌──────────────────────────┐
│  TrailAI Server            │  /api/sdk/v1  ·  /api/client/v1  ·  /api/admin/v1
└───────────┬──────────────┘
            ▼
      ┌────────────┐       ┌──────────────────────────┐
      │ PostgreSQL │ ◀──── │  Web Client (Next.js)    │
      └────────────┘       └──────────────────────────┘

The one rule to internalise

Everything is scoped to a project. Traces, prompts, guardrails, vault secrets, and API keys never cross a project boundary — even inside the same organization. When a page looks empty, check the project switcher before you check anything else.

Where to go next

Using the dashboard

Every page explained, with worked debugging examples.

Dashboard Guide

Instrumenting your code

Install, configure, and trace your application.

SDK Guide