-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat performance monitoring #189
base: epic_db_query_performance_monitoring
Are you sure you want to change the base?
Feat performance monitoring #189
Conversation
|
a3610b4
to
a920d40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, I only reviewed the new code, and would not have 100% confidence on any impacts on the older code. Therefore, additional reviews would be required.
- As pointed by the linter, some files are not formatted correctly.
- It is difficult to assert and understand the logic without any comments or unit tests. Can we please add unit tests for all logical functions and utils. Please add any comments helpful to understand what's going on :).
- I also see some code duplication as pointed by the linter as well. We should check if that can be removed.
- If we can, I think it can be refactored to only check for version once as the integration is running for a single DBMS, and build our struct based on that, which can still have the same functions for getting query metrics. But use different adapters based on the version. This could remove some duplication and improve readability.
- It would be helpful if the PR description is updated with some more details and testing details.
Thanks
src/query-performance-monitoring/common-utils/common-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/query-fetch-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/query-fetch-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/performance-metrics/execution_plan_metrics.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rajrohanyadav
Thanks for reviewing the PR
can you mention the comments with criticality as P0 ,P1 etc
we will work on them accordingly
P0 - Unit tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rajrohanyadav
Added unit test-cases
src/query-performance-monitoring/common-utils/common-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/common-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/common-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/ingestion-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/ingestion-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/ingestion-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/common-utils/query-fetch-helpers.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/performance-metrics/individual_query_metrics.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/performance-metrics/individual_query_metrics_test.go
Outdated
Show resolved
Hide resolved
src/query-performance-monitoring/performance-metrics/individual_query_metrics.go
Outdated
Show resolved
Hide resolved
46847de
to
8509bcd
Compare
3f4d87b
to
57bc323
Compare
src/query-performance-monitoring/validations/performance_metrics_validations.go
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed unit testing for Populate functions.
Query performance monitoring undo change remove test query query performance monitoring undo changelog changes Query performance monitoring Query performance monitoring slow query len check in individual queries metrics populate trim query text lint issue fix undo changelog file change test remove OH queries remove OH queries reusing existing DB connection (#22) reusing existing DB connection DB specific metric collection (#23) DB specific metric collection query response time threshold (#24) query response time threshold change in individual query (#25) change in individual query version specific queries (#26) verison specific queries fix database name (#27) fix database name test test min max threshold on limit (#28) min max threshold on limit Feat version specific individual query (#29) * version specific indivual query Feat version specific individual query (#30) Version specific indivual query fix query id , ingestData:false and reuse individual version specific query (#31) fix query id , ingestData:false and reuse individual version specific query database list check (#32) database list check publish only if there are metrics (#33) publish only if there are metrics undo change log change
Refactor : version specific blocking session annonamization
refactor: resolved review comments Co-authored-by: jsurampudi <[email protected]>
* refactor: resolved review comments and lint issues Co-authored-by: tharun0064 <[email protected]>
Refactor : nil checks
resolved review comments
* resolved: review comments
* Integration Testing Setup -- Needs Cleanup * fixed old integration test * tests now check unsupported containers * cleanup and fixed linting errors
feat : resolved review comments
resolved: review comments
* resolved: review comments
Feat: resolved review comments
* Refactored Integration Tests * Fixed linting errors * Fixed linting errors again * Fixed linting errors again again * Fixed linting errors again again again * linting is back * linting is back again * linting is back again again * linting is back again again again * linting is back again again again again
resolved : review comments
fix lint issues
Feat : resolved review comments
* resolved: refactored unit test cases
090797b
to
e7dff9d
Compare
PR to merge performance monitoring code from the fork to the branch
epic_db_query_performance_monitoring