-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix(code-review): Unify metrics for easier dashboarding #105587
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
base: master
Are you sure you want to change the base?
Conversation
|
@sentry review |
dfb8c72 to
9cc57f6
Compare
b1213ec to
e95ed4c
Compare
e95ed4c to
7b6327e
Compare
7b6327e to
e1bc52e
Compare
e1bc52e to
ccc2c57
Compare
ccc2c57 to
0c72107
Compare
0c72107 to
6ec1946
Compare
| ERROR = "seer.code_review.error" | ||
|
|
||
|
|
||
| SUCCESS_STATUS = "success" |
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.
This seemed to be an unused variable
| MISSING_ORGANIZATION = "github.webhook.check_run.missing-organization" | ||
| MISSING_ACTION = "github.webhook.check_run.missing-action" | ||
| INVALID_PAYLOAD = "github.webhook.check_run.invalid-payload" | ||
| INVALID_EXTERNAL_ID = "github.webhook.check_run.invalid-external-id" |
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.
These 2 under "Log" seemed to be unused
| logger = logging.getLogger(__name__) | ||
|
|
||
|
|
||
| class ErrorStatus(enum.StrEnum): |
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.
These were moved over the metrics.py file
|
|
||
|
|
||
| class Metrics(enum.StrEnum): | ||
| ERROR = "seer.code_review.error" |
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.
This was moved to metrics.py file
| logger = logging.getLogger(__name__) | ||
|
|
||
|
|
||
| class ErrorStatus(enum.StrEnum): |
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.
Moved to metrics.py
| NOT_REVIEW_COMMAND = "github.webhook.issue_comment.not-review-command" | ||
|
|
||
|
|
||
| class Metrics(enum.StrEnum): |
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.
Reworked into metrics.py
6ec1946 to
73d7389
Compare
WIP
Draft dashboard planning here - https://www.notion.so/sentry/Code-Review-Observability-2dc8b10e4b5d80ef87e6c8a28cd820a7?source=copy_link#2dd8b10e4b5d80d0bf96eb576cf708dc
Closes CW-105