You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/SETUP_GUIDE.md
+39-3Lines changed: 39 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,17 @@ supabase start
80
80
81
81
## Step 4: Configure Environment Variables
82
82
83
+
Start from the example file and update for local development:
84
+
85
+
```bash
86
+
# Copy the example file
87
+
cp .env.example .env
88
+
89
+
# The example file now includes LOCAL settings by default
90
+
# Just verify ClickHouse is set for local (not cloud):
91
+
grep CLICKHOUSE .env
92
+
```
93
+
83
94
Update `app/.env` with the following configuration.
84
95
85
96
**IMPORTANT**: If an `app/api/.env` file exists, you must also ensure it contains the `PROTOCOL=http` variable for local development, otherwise authentication cookies will not work properly:
@@ -219,16 +230,21 @@ supabase db dump --data-only --table=users
219
230
220
231
## Step 9: Start API Server
221
232
222
-
**IMPORTANT**: Before starting the API server, ensure the `api/.env` file exists with proper configuration. If it doesn't exist, create it:
233
+
**CRITICAL**: The API requires its own `.env` file at `api/.env` with the CORRECT ClickHouse settings. If this file exists with wrong settings (e.g., pointing to cloud ClickHouse), traces won't appear even if they're stored locally.
234
+
235
+
**⚠️ Common Issue**: If you pulled this repo and `api/.env` already exists, it may have cloud ClickHouse settings. You MUST update it for local development:
223
236
224
237
```bash
225
238
# Check if api/.env exists
226
239
ls api/.env
227
240
228
-
# If it doesn't exist, create a symlink to the main .env:
241
+
# Option 1: Copy from the example file (RECOMMENDED for new setup)
242
+
cp api/.env.example api/.env
243
+
244
+
# Option 2: Create a symlink to the main .env:
229
245
ln -s ../.env api/.env
230
246
231
-
#OR create api/.env with these minimum required variables:
247
+
#Option 3: Create api/.env manually with these minimum required variables:
232
248
cat > api/.env << 'EOF'
233
249
PROTOCOL=http
234
250
APP_DOMAIN=localhost:3000
@@ -417,6 +433,26 @@ except Exception as e:
417
433
418
434
## Troubleshooting
419
435
436
+
### Traces Not Showing in Dashboard Despite Successful Ingestion
437
+
438
+
If your test script says traces were sent successfully but they don't appear in the dashboard:
439
+
440
+
1.**Check the API's ClickHouse configuration**:
441
+
```bash
442
+
grep CLICKHOUSE api/.env
443
+
```
444
+
Should show LOCAL settings (127.0.0.1, port 8123, not cloud URLs)
0 commit comments