fix: Bot activity tracking performance - 523x faster (3000ms to 5.74ms)
All checks were successful
Build and Deploy LittleShop / Deploy to Production VPS (Manual Only) (push) Has been skipped
Build and Deploy LittleShop / Deploy to Pre-Production (CT109) (push) Successful in 1m2s

- Fixed BotActivityTracker configuration key mismatch (LittleShop:BaseUrl -> LittleShop:ApiUrl)
- Resolved DNS resolution failures causing 3-second timeouts on every activity tracking call
- Updated fallback from Docker hostname (littleshop:5000) to localhost (localhost:5000)
- Added comprehensive E2E integration test script for LittleShop + TeleBot + SilverPay
- Documented all test results with performance metrics and troubleshooting steps

Performance Improvement: 523x faster (from 3000ms+ to 5.74ms average)

Remaining Issue: SilverPay payment gateway not accessible at http://10.0.0.51:5500
Payment creation fails with HTTP 404 - requires infrastructure investigation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
sysadmin
2025-11-17 17:34:06 +00:00
parent 1d249d13ba
commit a43fa292db
3 changed files with 651 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ namespace TeleBot.Services
_httpClient = httpClient;
_configuration = configuration;
_logger = logger;
_littleShopUrl = configuration["LittleShop:BaseUrl"] ?? "http://littleshop:5000";
_littleShopUrl = configuration["LittleShop:ApiUrl"] ?? "http://localhost:5000";
}
public async Task TrackActivityAsync(