# MiniAPM Configuration
# Copy this file to .env and adjust as needed
# Database path (SQLite)
SQLITE_PATH=./data/miniapm.db
# Logging level
RUST_LOG=miniapm=info
# Data retention (in days)
RETENTION_DAYS_REQUESTS=7
RETENTION_DAYS_ERRORS=30
RETENTION_DAYS_HOURLY_ROLLUPS=90
RETENTION_DAYS_SPANS=7
# Slow request threshold (milliseconds)
SLOW_REQUEST_THRESHOLD_MS=500
# Multi-user mode (requires SESSION_SECRET)
ENABLE_USER_ACCOUNTS=false
# Multi-project mode
ENABLE_PROJECTS=false
# Session secret (required when ENABLE_USER_ACCOUNTS=true)
# Generate with: openssl rand -hex 32
# SESSION_SECRET=your-secret-here
# MiniAPM URL (used by simulator and MCP config)
MINI_APM_URL=http://localhost:3000