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(aci): add logging for plugin notifications #88342

Merged
merged 2 commits into from
Mar 31, 2025
Merged

Conversation

ameliahsu
Copy link
Member

add logging to verify that plugin notifications even work in the current world

@ameliahsu ameliahsu requested review from iamrajjoshi and a team March 31, 2025 16:30
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 31, 2025
Comment on lines +199 to 201
self.logger.info("rules.plugin_notification_sent", extra=extra)

metrics.incr("notifications.sent", instance=plugin.slug, skip_internal=False)
Copy link
Contributor

@saponifi3d saponifi3d Mar 31, 2025

Choose a reason for hiding this comment

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

can we use the metric that is being sent to verify the notifications instead of adding a log? is there additional data we should have on the metric to make it more useful?

Copy link
Member Author

Choose a reason for hiding this comment

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

unfortunately not, since we need to be able to distinguish these notifications from the "Send notification to all legacy integrations" action (they use the same metric)

@ameliahsu ameliahsu merged commit 62d20e4 into master Mar 31, 2025
47 checks passed
@ameliahsu ameliahsu deleted the mia/aci/plugin-log branch March 31, 2025 17:17
andrewshie-sentry pushed a commit that referenced this pull request Mar 31, 2025
add logging to verify that plugin notifications even work in the current
world
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