Skip to content

Commit

Permalink
Feat: resolved review comments (#65)
Browse files Browse the repository at this point in the history
Feat: resolved review comments
  • Loading branch information
tharun0064 authored Jan 28, 2025
1 parent 2b972fe commit 4a8d893
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/query-performance-monitoring/query_performance_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func QueryPerformanceMain(args args.ArgumentList, pgIntegration *integration.Int
return
}
gv := global_variables.SetGlobalVariables(args, versionInt, commonutils.GetDatabaseListInString(databaseMap))
populateQueryPerformanceMetrics(newConnection, pgIntegration, gv)
}

func populateQueryPerformanceMetrics(newConnection *performancedbconnection.PGSQLConnection, pgIntegration *integration.Integration, gv *global_variables.GlobalVariables) {
start := time.Now()
log.Debug("Starting PopulateSlowRunningMetrics at ", start)
slowRunningQueries := performancemetrics.PopulateSlowRunningMetrics(newConnection, pgIntegration, gv)
Expand All @@ -62,5 +66,4 @@ func QueryPerformanceMain(args args.ArgumentList, pgIntegration *integration.Int
performancemetrics.PopulateExecutionPlanMetrics(individualQueries, pgIntegration, gv)
log.Debug("PopulateExecutionPlanMetrics completed in ", time.Since(start))

log.Debug("Query analysis completed.")
}

Check failure on line 69 in src/query-performance-monitoring/query_performance_main.go

View workflow job for this annotation

GitHub Actions / push-pr / static-analysis / Run all static analysis checks

unnecessary trailing newline (whitespace)

0 comments on commit 4a8d893

Please sign in to comment.