Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: include distinctId in error log messages for production debuggability
Devin AI62f732f12edf
diff --git a/backend/src/services/telemetry/telemetry-service.ts b/backend/src/services/telemetry/telemetry-service.tsindex 558cbc5935..f56f9658a9 100644--- a/backend/src/services/telemetry/telemetry-service.ts+++ b/backend/src/services/telemetry/telemetry-service.ts@@ -350,7 +350,7 @@ To opt into telemetry, you can set "TELEMETRY_ENABLED=true" within the environmeconst wasSet = await keyStore.setItemWithExpiryNX(cacheKey, TELEMETRY_IDENTIFY_CACHE_TTL, "1");if (!wasSet) return;} catch (error) {- logger.error(error, "Failed to check PostHog identify dedup cache");+ logger.error(error, `Failed to check PostHog identify dedup cache for distinctId=${distinctId}`);// In-memory fallback to limit blast radius during Redis outageif (inMemoryIdentifyDedup.has(distinctId)) return;inMemoryIdentifyDedup.add(distinctId);@@ -360,7 +360,7 @@ To opt into telemetry, you can set "TELEMETRY_ENABLED=true" within the environmetry {postHog.identify({ distinctId, properties });} catch (err) {- logger.error(err, "Failed to call postHog.identify");+ logger.error(err, `Failed to call postHog.identify for distinctId=${distinctId}`);}}}