Documentation
Welcome to the triage technical documentation.
Quick Navigation
Section titled “Quick Navigation”
📖 Overview & Architecture
Learn how Triage achieves zero-overhead panic isolation and on-demand AST slicing.
⚡ 5-Minute Quickstart
Spin up a local stack and capture your first AI-diagnosed panic.
🛠️ Go SDK Integration
Integrate Triage middleware into standard net/http, Chi, Gin, Echo, or Fiber.
🌲 AST Engine Internals
Explore the Go parser, *ast.FuncDecl node extraction, and 3-tier caching.
🤖 Gemini AI Diagnostics
Configure your preferred Gemini model for structured root-cause fixes.
🐳 Self-Hosting & Docker
Deploy the single-container Triage engine in your private VPC or cluster.
What is Triage?
Section titled “What is Triage?”When a Go HTTP server panics at runtime, triage:
- Non-blockingly catches the panic using standard Go
defer + recover(). - Gathers the stack trace and slices only the enclosing
*ast.FuncDeclfunction declaration usinggo/parser. - Streams the AST snippet to Google Gemini AI for instant root cause diagnosis and patch proposals.
- Auto-creates a detailed GitHub issue with labels and telemetry IDs.
- Displays live incidents in your self-hosted Studio Dashboard UI.
Ready to get started?
Section titled “Ready to get started?”Jump right into the Go SDK Integration Guide or check the Self-Hosting Guide.