Addshore has uploaded a new change for review. https://gerrit.wikimedia.org/r/310524
Change subject: Count the number of success & failure notifs sent ...................................................................... Count the number of success & failure notifs sent Change-Id: I3e11bc8878ddf48265c628d828ee700f3aee7bbb --- M includes/DiscussionParser.php 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Echo refs/changes/24/310524/1 diff --git a/includes/DiscussionParser.php b/includes/DiscussionParser.php index 3793eb0..5bedd6e 100644 --- a/includes/DiscussionParser.php +++ b/includes/DiscussionParser.php @@ -182,6 +182,8 @@ return; } + $stats = MediaWikiServices::getInstance()->getStatsdDataFactory(); + if ( $overallMentionsCount > $wgEchoMaxMentionsCount ) { if ( $wgEchoMentionStatusNotifications ) { EchoEvent::create( array( @@ -194,6 +196,7 @@ ), 'agent' => $agent, ) ); + $stats->increment( 'echo.event.mention.notification.failure-too-many' ); } return; } @@ -226,6 +229,7 @@ ), 'agent' => $agent, ) ); + $stats->increment( 'echo.event.mention.notification.success' ); } // TODO batch? @@ -242,6 +246,7 @@ ), 'agent' => $agent, ) ); + $stats->increment( 'echo.event.mention.notification.failure-user-anonymous' ); } // TODO batch? @@ -258,6 +263,7 @@ ), 'agent' => $agent, ) ); + $stats->increment( 'echo.event.mention.notification.failure-user-unknown' ); } } } -- To view, visit https://gerrit.wikimedia.org/r/310524 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3e11bc8878ddf48265c628d828ee700f3aee7bbb Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Echo Gerrit-Branch: master Gerrit-Owner: Addshore <addshorew...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits