Skip to content

feat: implement bot command performance profiling metrics #315

Merged
Solomonsolomonsolomon merged 1 commit into
gear5labs:masterfrom
gelluisaac:feat
Apr 29, 2026
Merged

feat: implement bot command performance profiling metrics #315
Solomonsolomonsolomon merged 1 commit into
gear5labs:masterfrom
gelluisaac:feat

Conversation

@gelluisaac
Copy link
Copy Markdown
Contributor

successfully implemented bot command performance profiling metrics (issue #149) and pushed to the feat branch. Here's what was completed:
Changes Made
Fixed DEBOUNCE_MS constant - Added to both Discord and Telegram adapters
Added bot command AuditActions - Extended AuditAction enum with 9 bot-specific actions
Created performance profiler - New performanceProfiler.ts module with:
withPerformanceProfiling() wrapper function
logCommandMetrics() to send data to backend
extractCommandName() helper
isSlowExecution() threshold check
Wrapped Discord commands - All commands (!start, !help, !thread, !sponsor, !trustline, !dashboard, !validate) now profile execution time
Wrapped Telegram commands - All commands (/start, /help, /trustline, /dashboard, /validate) now profile execution time
Created backend endpoint - POST /api/bot/metrics receives and logs performance data to audit log
Push Details
closes #149

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@gelluisaac Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Solomonsolomonsolomon Solomonsolomonsolomon merged commit 8acec1f into gear5labs:master Apr 29, 2026
3 checks passed
@gelluisaac gelluisaac deleted the feat branch April 29, 2026 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bot] Implement Bot Command Performance Profiling metrics

2 participants