parsePgStatMonitorLogs() — supabase Function Reference
Architecture documentation for the parsePgStatMonitorLogs() function in WithMonitor.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 7d3b6c56_2019_706a_2ad2_cc9303860408["parsePgStatMonitorLogs()"] 8afea200_94fd_d6c2_5605_0880960a2b8b["WithMonitor()"] 8afea200_94fd_d6c2_5605_0880960a2b8b -->|calls| 7d3b6c56_2019_706a_2ad2_cc9303860408 862ea1ce_b887_312c_ca82_53be5e9d082d["transformLogsToJSON()"] 7d3b6c56_2019_706a_2ad2_cc9303860408 -->|calls| 862ea1ce_b887_312c_ca82_53be5e9d082d style 7d3b6c56_2019_706a_2ad2_cc9303860408 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/QueryPerformance/WithMonitor/WithMonitor.utils.ts lines 52–64
export const parsePgStatMonitorLogs = (logData: any[]): ParsedLogEntry[] => {
if (!logData || logData.length === 0) return []
const validParsedLogs = logData
.map((log) => ({
...log,
parsedEventMessage: transformLogsToJSON(log.event_message),
}))
.filter((log) => log.parsedEventMessage !== null)
.filter((log) => log.parsedEventMessage?.event === 'bucket_query')
return validParsedLogs.map((log) => log.parsedEventMessage)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does parsePgStatMonitorLogs() do?
parsePgStatMonitorLogs() is a function in the supabase codebase.
What does parsePgStatMonitorLogs() call?
parsePgStatMonitorLogs() calls 1 function(s): transformLogsToJSON.
What calls parsePgStatMonitorLogs()?
parsePgStatMonitorLogs() is called by 1 function(s): WithMonitor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free