Files
cloudflare-domain-manager/apps/web/src/lib/debug-agent-log.ts
T
DenozordecandCursor 9a87d0c82c
Build, Test, and Push CFDM Docker Image / test (push) Failing after 46s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been skipped
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been skipped
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
feat(web): enhance debugging capabilities across components
- Integrated debug logging in main application file to track boot process.
- Added layout width logging in PageShell and various ReUI components to monitor rendering dimensions.
- Implemented chart size logging in dashboard analytics components for better performance insights.
- Enhanced OpsDashboard and ResourcePage with width tracking to improve layout responsiveness.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 01:23:19 +07:00

29 lines
697 B
TypeScript

/** Debug session 943716 — remove after layout/chart investigation */
export const DEBUG_BUILD_STAMP = 'layout-charts-v1'
export function debugAgentLog(
location: string,
message: string,
data: Record<string, unknown>,
hypothesisId: string,
) {
// #region agent log
fetch('http://127.0.0.1:7580/ingest/5c1b60ca-3f59-41ce-8435-d25bcc12c3cf', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-Debug-Session-Id': '943716',
},
body: JSON.stringify({
sessionId: '943716',
location,
message,
data,
hypothesisId,
timestamp: Date.now(),
runId: 'pre-fix',
}),
}).catch(() => {})
// #endregion
}