Skip to content
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

🔧 chore: remove redundant slack logging & metrics #82744

Merged
merged 6 commits into from
Jan 3, 2025

Conversation

iamrajjoshi
Copy link
Member

we have completed the audit of our integration slos, so going back and cleaning up redundant logging and metrics.

we should also monitor our DD monitors to see if they need updating.

@iamrajjoshi iamrajjoshi self-assigned this Dec 31, 2024
@iamrajjoshi iamrajjoshi requested review from a team as code owners December 31, 2024 00:12
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Dec 31, 2024
Copy link

codecov bot commented Dec 31, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 6 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/sentry/integrations/slack/service.py 60.00% 4 Missing ⚠️
...entry/integrations/discord/actions/metric_alert.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #82744      +/-   ##
==========================================
+ Coverage   87.49%   87.50%   +0.01%     
==========================================
  Files        9410     9410              
  Lines      536849   536816      -33     
  Branches    21049    21049              
==========================================
+ Hits       469704   469731      +27     
+ Misses      66776    66716      -60     
  Partials      369      369              

thread_ts=parent_notification.message_identifier,
text=notification_to_send,
blocks=json_blocks,
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff is weird here, but basically we don't catch the SlackAPI in this function, rather the callee function above.

client=slack_client,
)
except Exception as err:
if isinstance(err, SlackApiError):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taking care of the lifecycle here instead

@iamrajjoshi iamrajjoshi merged commit 0a20548 into master Jan 3, 2025
49 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/clean-slack-slo-logging-1 branch January 3, 2025 20:15
Copy link

sentry-io bot commented Jan 4, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ SlackApiError: The request to the Slack API failed. (url: https://www.slack.com/api/chat.postMessage) sentry.integrations.slack.tasks.send_activity_n... View Issue
  • ‼️ RuleDataError: failed to find rule action 117ef0c3-ea5c-45c7-a9fc-9759fddbbe2a for rule 11951798 sentry.integrations.slack.tasks.send_activity_n... View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants