-
Notifications
You must be signed in to change notification settings - Fork 48
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
[Detector creation] UI workflow metrics #865
[Detector creation] UI workflow metrics #865
Conversation
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #865 +/- ##
==========================================
- Coverage 31.03% 31.00% -0.03%
==========================================
Files 151 157 +6
Lines 5111 5179 +68
Branches 948 906 -42
==========================================
+ Hits 1586 1606 +20
- Misses 3335 3386 +51
+ Partials 190 187 -3 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
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.
@amsiglan said offline that the cypress tests are passing locally. Changes LGTM.
import { MetricsCounter, PartialMetricsCounter } from '../types'; | ||
import { SecurityAnalyticsPluginConfigType } from '../config'; | ||
|
||
export function aggregateMetrics( |
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.
Nitpick: Some comments explaining these functions would be helpful.
Signed-off-by: Amardeepsingh Siglani <[email protected]>
* implemented metrics for detector creation Signed-off-by: Amardeepsingh Siglani <[email protected]> * updated tests Signed-off-by: Amardeepsingh Siglani <[email protected]> * added config based flag; interval of 2 min to emit browser metrics Signed-off-by: Amardeepsingh Siglani <[email protected]> * removed unused metrics counters Signed-off-by: Amardeepsingh Siglani <[email protected]> * added null check Signed-off-by: Amardeepsingh Siglani <[email protected]> * updated code to check for window unload Signed-off-by: Amardeepsingh Siglani <[email protected]> --------- Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit dff1ef3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* implemented metrics for detector creation * updated tests * added config based flag; interval of 2 min to emit browser metrics * removed unused metrics counters * added null check * updated code to check for window unload --------- (cherry picked from commit dff1ef3) Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Adding metrics to understand detector creation hurdles in the UI.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.