Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit 479d7d6

Browse files
Added missing mod cat metrics invocation
1 parent c9912e3 commit 479d7d6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/rpc/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ pub async fn fetch(
102102
"Database has moderation results for id={}, blocked={}, categories:{:?}, provider:{:?}",
103103
req_id, result.blocked, result.categories, result.provider
104104
);
105+
result.categories.iter().for_each(|c| {
106+
metrics::MODERATION_CATEGORIES
107+
.with_label_values(&[&c.to_string()])
108+
.inc()
109+
});
105110
let document = if !result.blocked || params.force {
106111
Some(fetch_document(ctx.clone(), req_id, &params.url).await?)
107112
} else {

0 commit comments

Comments
 (0)