feat(metrics): count Redis webhook dedup hits (#2075)#3544
Conversation
Expose isWebhookDeliveryDuplicate/rememberWebhookDelivery helpers and
wire server dedup through them so redeliveries increment
gittensory_webhook_dedup_total{backend="redis"} without shifting
selfhost env-reference line numbers.
Closes JSONbored#2075
Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 16:40:04 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3544 +/- ##
=======================================
Coverage 93.09% 93.09%
=======================================
Files 301 301
Lines 31450 31462 +12
Branches 11483 11484 +1
=======================================
+ Hits 29279 29291 +12
Misses 1517 1517
Partials 654 654
🚀 New features to boost your workflow:
|
Summary
isWebhookDeliveryDuplicateandrememberWebhookDeliveryinsrc/selfhost/redis-cache.tsto emitgittensory_webhook_dedup_total{backend="redis"}on Redis-backed webhook redelivery hitsCloses #2075
Test plan
npm run test -- test/unit/selfhost-redis-cache.test.tsnpm run selfhost:env-reference:check(no UI/env-reference drift)npm run test:ci(9323/9324 passed; one unrelated flaky timeout inai-summaries.test.ts)Made with Cursor