From 17b0257459b2a83234cc2bb8688a5d8980f87243 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 15 Apr 2026 12:11:08 -0400 Subject: [PATCH] fix: properly log ap send errors to the appropriate analytics namespace --- src/activitypub/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/index.js b/src/activitypub/index.js index dd39ebb979..1f601df4f6 100644 --- a/src/activitypub/index.js +++ b/src/activitypub/index.js @@ -510,7 +510,7 @@ ActivityPub.record.sendError = async ({ payload, uri, error }) => { body: JSON.stringify(payload), stack: error.message, }), - analytics.increment(['ap.out', `ap.out:byType:${payload.type}`, `ap.out:byHost:${hostname}`]), + analytics.increment(['ap.outErr', `ap.outErr:byType:${payload.type}`, `ap.outErr:byHost:${hostname}`]), ]); await db.expire(`ap.errors:${id}`, 60 * 60 * 24); // 24 hours };