-
Notifications
You must be signed in to change notification settings - Fork 28
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
add QueryMetricsExtension to graphql view #572
Conversation
|
||
extension.set_type_and_name(query=sample_wildcard) | ||
assert extension.operation_type == "unknown_type" | ||
assert extension.operation_name == "unknown_name" |
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.
Does anyone know any additional query formats/patterns? LMK
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. 📢 Thoughts on this report? Let us know! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #572 +/- ##
==========================================
+ Coverage 91.40% 91.42% +0.02%
==========================================
Files 604 604
Lines 16052 16102 +50
==========================================
+ Hits 14672 14722 +50
Misses 1380 1380
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found @@ Coverage Diff @@
## main #572 +/- ##
==========================================
+ Coverage 91.40% 91.42% +0.02%
==========================================
Files 604 604
Lines 16052 16102 +50
==========================================
+ Hits 14672 14722 +50
Misses 1380 1380
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #572 +/- ##
=======================================
+ Coverage 95.86 95.87 +0.01
=======================================
Files 782 782
Lines 17370 17420 +50
=======================================
+ Hits 16651 16701 +50
Misses 719 719
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Lgtm! I think you need someone with API permissions to approve this though
48d6ff6
to
4b0a637
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.
great work! great comments and making sure cases are covered
Purpose/Motivation
Gives insight into our GraphQL use
Links to relevant tickets
codecov/engineering-team#1238
What does this PR do?
Adds 2 counters and 1 timer to our GQL endpoint, we should be able to see what queries are being used the most and if any are mad slow
Notes to Reviewer
The hardest part for me was trying to anticipate all the possible formats for our queries, to be able to parse and log them correctly in
set_type_and_name
. I have them listed intest_query_metrics_extension_set_type_and_name
. If anyone knows of any other patterns we use, let me know and I'll build them in.