transformLogsToJSON() — supabase Function Reference
Architecture documentation for the transformLogsToJSON() function in QueryPerformance.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 862ea1ce_b887_312c_ca82_53be5e9d082d["transformLogsToJSON()"] 7d3b6c56_2019_706a_2ad2_cc9303860408["parsePgStatMonitorLogs()"] 7d3b6c56_2019_706a_2ad2_cc9303860408 -->|calls| 862ea1ce_b887_312c_ca82_53be5e9d082d style 862ea1ce_b887_312c_ca82_53be5e9d082d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/QueryPerformance/QueryPerformance.utils.ts lines 31–40
export const transformLogsToJSON = (log: string) => {
try {
let jsonString = log.replace('[pg_stat_monitor] ', '')
jsonString = jsonString.replace(/""/g, '","')
const jsonObject = JSON.parse(jsonString)
return jsonObject
} catch (error) {
return null
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does transformLogsToJSON() do?
transformLogsToJSON() is a function in the supabase codebase.
What calls transformLogsToJSON()?
transformLogsToJSON() is called by 1 function(s): parsePgStatMonitorLogs.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free