{
"table": "connected_devices",
"operation": "select"
}{
"headers": {
"accept": "*/*",
"user-agent": "pg_net/0.19.5",
"content-type": "application/json",
"content-length": "2",
"x-forwarded-for": "98.89.138.29,98.89.138.29, 99.82.165.78"
},
"http_path": "/sync-all-devices",
"http_method": "POST"
}{
"count": 1,
"provider": "libre"
}{
"service": "edge_function",
"endpoint": "sync-libre",
"provider": "libre",
"device_id": "c253d974-b0e5-4e24-b4ec-5b9b34a17caa"
}{
"device_count": 3
}{
"key_length": 219
}{
"device_id": "c253d974-b0e5-4e24-b4ec-5b9b34a17caa",
"initial_backfill": false
}{
"headers": {
"accept": "*/*",
"user-agent": "Deno/2.1.4 (variant; SupabaseEdgeRuntime/1.73.0)",
"x-trace-id": "trace_mnd4ypdl_uhf0ma3b",
"content-type": "application/json",
"content-length": "144",
"x-forwarded-for": "44.197.213.58,44.197.213.58, 3.2.51.17"
},
"http_path": "/sync-libre",
"http_method": "POST"
}{
"service": "libre",
"endpoint": "/glucose/graph",
"patient_id": "98f3eaa7-53ed-11ee-b5b3-8a202adda690"
}{
"service": "libre",
"endpoint": "/glucose/graph",
"duration_ms": 301,
"records_count": 140,
"response_status": 200
}{
"count": 140
}{
"count": 140,
"table": "glucose_data",
"operation": "upsert"
}{
"service": "libre",
"endpoint": "/logbook",
"patient_id": "98f3eaa7-53ed-11ee-b5b3-8a202adda690"
}{
"service": "libre",
"endpoint": "/logbook",
"duration_ms": 217,
"records_count": 15,
"response_status": 200
}{
"count": 15
}{
"with_glucose": 14,
"total_entries": 14
}{
"count": 14,
"table": "glucose_alarms",
"operation": "upsert"
}{
"table": "connected_devices",
"device_id": "c253d974-b0e5-4e24-b4ec-5b9b34a17caa",
"operation": "update"
}{
"total_records": 154
}{
"duration_ms": 1780,
"content_type": "application/json"
}{
"total": 1,
"provider": "libre",
"processed": 1,
"batch_size": 1,
"batch_index": 0,
"batch_success": 1
}{
"service": "edge_function",
"endpoint": "sync-fitbit",
"provider": "fitbit",
"device_id": "804f5bd9-992a-45e3-9937-3034bc97c610"
}{
"count": 1,
"provider": "fitbit"
}{
"service": "edge_function",
"endpoint": "sync-libre",
"device_id": "c253d974-b0e5-4e24-b4ec-5b9b34a17caa",
"duration_ms": 2203,
"response_status": 200
}{
"key_length": 219
}{
"device_id": "804f5bd9-992a-45e3-9937-3034bc97c610",
"sync_type": "all",
"initial_backfill": false
}{
"headers": {
"accept": "*/*",
"user-agent": "Deno/2.1.4 (variant; SupabaseEdgeRuntime/1.73.0)",
"x-trace-id": "trace_mnd4ypdl_uhf0ma3b",
"content-type": "application/json",
"content-length": "144",
"x-forwarded-for": "44.197.213.58,44.197.213.58, 99.82.165.76"
},
"http_path": "/sync-fitbit",
"http_method": "POST"
}{
"table": "connected_devices",
"operation": "select"
}{
"end_date": "2026-03-30",
"days_count": 1,
"start_date": "2026-03-30",
"sync_types": [
"summary",
"sleep",
"activities",
"intraday"
]
}{
"service": "fitbit",
"endpoint": "/activities/date/2026-03-30"
}{
"service": "fitbit",
"endpoint": "/hrv/date/2026-03-30"
}{
"attempt": 1,
"service": "fitbit",
"endpoint": "/1/user/-/activities/date/2026-03-30.json",
"duration_ms": 1837,
"response_status": 200
}{
"count": 1,
"table": "daily_summary",
"operation": "upsert"
}{
"attempt": 1,
"service": "fitbit",
"endpoint": "/1/user/-/hrv/date/2026-03-30.json",
"duration_ms": 65,
"response_status": 200
}{
"result": {
"success": true,
"sync_type": "summary",
"records_synced": 1
}
}{
"service": "fitbit",
"endpoint": "/sleep/date/2026-03-30"
}{
"attempt": 1,
"service": "fitbit",
"endpoint": "/1.2/user/-/sleep/date/2026-03-30.json",
"duration_ms": 369,
"response_status": 200
}{
"count": 1,
"table": "sleep_sessions",
"operation": "upsert"
}{
"result": {
"success": true,
"sync_type": "sleep",
"records_synced": 1
}
}{
"service": "fitbit",
"endpoint": "/activities/list"
}{
"activities_count": 0
}{
"service": "fitbit",
"endpoint": "/heart/date/2026-03-30/1d/1min"
}{
"result": {
"success": true,
"sync_type": "activities",
"records_synced": 0
}
}{
"attempt": 1,
"service": "fitbit",
"endpoint": "/1/user/-/activities/list.json?afterDate=2026-03-30&sort=asc&offset=0&limit=100",
"duration_ms": 190,
"response_status": 200
}{
"attempt": 1,
"service": "fitbit",
"endpoint": "/1/user/-/activities/heart/date/2026-03-30/1d/1min.json",
"duration_ms": 428,
"response_status": 200
}{
"service": "fitbit",
"endpoint": "/steps/date/2026-03-30/1d/1min"
}{
"attempt": 1,
"service": "fitbit",
"endpoint": "/1/user/-/activities/steps/date/2026-03-30/1d/1min.json",
"duration_ms": 476,
"response_status": 200
}{
"count": 481,
"table": "intraday_data",
"operation": "upsert",
"chunk_index": 0
}{
"table": "connected_devices",
"operation": "update"
}{
"result": {
"success": true,
"sync_type": "intraday",
"records_synced": 481
}
}{
"duration_ms": 4346,
"content_type": "application/json"
}{
"failed_syncs": 0,
"total_records": 483,
"successful_syncs": 4
}{
"total": 1,
"provider": "fitbit",
"processed": 1,
"batch_size": 1,
"batch_index": 0,
"batch_success": 1
}{
"count": 1,
"provider": "whoop"
}{
"service": "edge_function",
"endpoint": "sync-fitbit",
"device_id": "804f5bd9-992a-45e3-9937-3034bc97c610",
"duration_ms": 4789,
"response_status": 200
}{
"service": "edge_function",
"endpoint": "sync-whoop",
"provider": "whoop",
"device_id": "1fdec537-3e63-4519-906f-3db96804ae00"
}{
"key_length": 219
}{
"device_id": "1fdec537-3e63-4519-906f-3db96804ae00",
"sync_type": "all",
"initial_backfill": false
}{
"headers": {
"accept": "*/*",
"user-agent": "Deno/2.1.4 (variant; SupabaseEdgeRuntime/1.73.0)",
"x-trace-id": "trace_mnd4ypdl_uhf0ma3b",
"content-type": "application/json",
"content-length": "144",
"x-forwarded-for": "44.197.213.58,44.197.213.58, 3.2.51.16"
},
"http_path": "/sync-whoop",
"http_method": "POST"
}{
"table": "connected_devices",
"operation": "select"
}{
"end_date": "2026-03-30",
"start_date": "2026-03-27",
"sync_types": [
"recovery",
"sleep",
"workout"
]
}{
"expires_at": "2026-03-30T13:00:11.215Z",
"token_type": "[REDACTED]"
}{
"service": "whoop",
"endpoint": "/cycle"
}{
"service": "whoop",
"success": true,
"endpoint": "/cycle?start=2026-03-27T00%3A00%3A00.000Z&end=2026-03-30T23%3A59%3A59.999Z",
"duration_ms": 144,
"response_status": 200
}{
"service": "whoop",
"endpoint": "/recovery"
}{
"service": "whoop",
"success": true,
"endpoint": "/recovery?start=2026-03-27T00%3A00%3A00.000Z&end=2026-03-30T23%3A59%3A59.999Z",
"duration_ms": 134,
"response_status": 200
}{
"cycles_count": 5,
"recoveries_count": 4
}{
"count": 5,
"table": "daily_summary",
"operation": "upsert"
}{
"device_id": "1fdec537-3e63-4519-906f-3db96804ae00",
"total_records": 5,
"existing_dates": [
"2026-03-29",
"2026-03-28",
"2026-03-27",
"2026-03-26",
"2026-03-25"
]
}{
"result": {
"success": true,
"sync_type": "recovery",
"records_synced": 5
}
}{
"service": "whoop",
"endpoint": "/activity/sleep"
}{
"count": 4,
"table": "sleep_sessions",
"operation": "upsert"
}{
"records_count": 4
}{
"service": "whoop",
"success": true,
"endpoint": "/activity/sleep?start=2026-03-27T00%3A00%3A00.000Z&end=2026-03-30T23%3A59%3A59.999Z",
"duration_ms": 182,
"response_status": 200
}{
"result": {
"success": true,
"sync_type": "sleep",
"records_synced": 4
}
}{
"service": "whoop",
"endpoint": "/activity/workout"
}{
"count": 4,
"table": "activities",
"operation": "upsert"
}{
"service": "whoop",
"success": true,
"endpoint": "/activity/workout?start=2026-03-27T00%3A00%3A00.000Z&end=2026-03-30T23%3A59%3A59.999Z",
"duration_ms": 153,
"response_status": 200
}{
"records_count": 4
}{
"table": "connected_devices",
"operation": "update"
}{
"result": {
"success": true,
"sync_type": "workout",
"records_synced": 4
}
}{
"duration_ms": 3586,
"content_type": "application/json"
}{
"failed_syncs": 0,
"total_records": 13,
"successful_syncs": 3
}{
"total": 1,
"provider": "whoop",
"processed": 1,
"batch_size": 1,
"batch_index": 0,
"batch_success": 1
}{
"service": "edge_function",
"endpoint": "sync-whoop",
"device_id": "1fdec537-3e63-4519-906f-3db96804ae00",
"duration_ms": 3802,
"response_status": 200
}{
"user_ids": [
"3597587c-1242-4c31-ac21-ce2768e6fbd8",
"73f1a17e-eca2-4b92-9bc8-425c93352fce"
],
"user_count": 2
}{
"failed": 0,
"skipped": 0,
"successful": 3,
"total_processed": 3
}{
"service": "edge_function",
"user_id": "73f1a17e-eca2-4b92-9bc8-425c93352fce",
"endpoint": "compute-baselines"
}{
"service": "edge_function",
"user_id": "3597587c-1242-4c31-ac21-ce2768e6fbd8",
"endpoint": "compute-baselines"
}{
"user_id": "73f1a17e-eca2-4b92-9bc8-425c93352fce"
}{
"headers": {
"accept": "*/*",
"user-agent": "Deno/2.1.4 (variant; SupabaseEdgeRuntime/1.73.0)",
"x-trace-id": "trace_mnd4ypdl_uhf0ma3b",
"content-type": "application/json",
"content-length": "50",
"x-forwarded-for": "44.197.213.58,44.197.213.58, 99.82.165.78"
},
"http_path": "/compute-baselines",
"http_method": "POST"
}{
"headers": {
"accept": "*/*",
"user-agent": "Deno/2.1.4 (variant; SupabaseEdgeRuntime/1.73.0)",
"x-trace-id": "trace_mnd4ypdl_uhf0ma3b",
"content-type": "application/json",
"content-length": "50",
"x-forwarded-for": "44.197.213.58,44.197.213.58, 3.2.51.16"
},
"http_path": "/compute-baselines",
"http_method": "POST"
}{
"user_id": "3597587c-1242-4c31-ac21-ce2768e6fbd8"
}{
"safety_flags": [],
"has_cycle_info": true,
"metrics_summary": {
"hrv": {
"phases": [
"all",
"follicular",
"luteal"
],
"sample_count": 42
},
"steps": {
"phases": [
"all",
"follicular",
"luteal"
],
"sample_count": 42
},
"resting_hr": {
"phases": [
"all",
"follicular",
"luteal"
],
"sample_count": 42
},
"sleep_rem_pct": {
"phases": [
"all",
"follicular",
"luteal"
],
"sample_count": 42
},
"sleep_deep_pct": {
"phases": [
"all",
"follicular",
"luteal"
],
"sample_count": 42
},
"sleep_duration": {
"phases": [
"all",
"follicular",
"luteal"
],
"sample_count": 42
}
},
"baselines_computed": 18
}{
"safety_flags": [],
"has_cycle_info": false,
"metrics_summary": {
"hrv": {
"phases": [
"all"
],
"sample_count": 82
},
"resting_hr": {
"phases": [
"all"
],
"sample_count": 82
},
"sleep_rem_pct": {
"phases": [
"all"
],
"sample_count": 90
},
"sleep_deep_pct": {
"phases": [
"all"
],
"sample_count": 90
},
"sleep_duration": {
"phases": [
"all"
],
"sample_count": 90
},
"respiratory_rate": {
"phases": [
"all"
],
"sample_count": 90
}
},
"baselines_computed": 6
}{
"duration_ms": 370,
"content_type": "application/json"
}{
"duration_ms": 351,
"content_type": "application/json"
}{
"service": "edge_function",
"user_id": "73f1a17e-eca2-4b92-9bc8-425c93352fce",
"endpoint": "compute-baselines",
"duration_ms": 557,
"response_status": 200
}{
"failed": 0,
"attempted": 2,
"succeeded": 2
}{
"service": "edge_function",
"user_id": "3597587c-1242-4c31-ac21-ce2768e6fbd8",
"endpoint": "compute-baselines",
"duration_ms": 570,
"response_status": 200
}{
"duration_ms": 12340,
"content_type": "application/json"
}