Skip to content

Commit

Permalink
chore(slack): add logging for slack options load filtering (#80207)
Browse files Browse the repository at this point in the history
  • Loading branch information
cathteng authored Nov 4, 2024
1 parent f43999c commit 4ffb8e8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/sentry/integrations/slack/webhooks/options_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,18 @@ def get_filtered_option_groups(self, group: Group, substring: str) -> list[Optio
all_members,
)
)
_logger.info(
"slack.options_webhook_filter",
extra={
"substring": substring,
"group_id": group.id,
"project_id": group.project_id,
"teams": len(all_teams),
"filtered_teams": len(filtered_teams),
"members": len(list(all_members)),
"filtered_members": len(filtered_members),
},
)

option_groups: list[OptionGroup] = []
if filtered_teams:
Expand Down

0 comments on commit 4ffb8e8

Please sign in to comment.