Skip to content

fix: correlation ID logging, Swagger docs accuracy, Discord timeout - #362

Merged
meshackyaro merged 1 commit into
trustflow-protocol:mainfrom
OlaGreat:fix/247-correlation-id-logging-246-swagger-docs-243-role-admin-spike-242-discord-timeout
Aug 31, 2026
Merged

fix: correlation ID logging, Swagger docs accuracy, Discord timeout#362
meshackyaro merged 1 commit into
trustflow-protocol:mainfrom
OlaGreat:fix/247-correlation-id-logging-246-swagger-docs-243-role-admin-spike-242-discord-timeout

Conversation

@OlaGreat

Copy link
Copy Markdown
Contributor

closes #247 - Add CorrelationIdMiddleware (AsyncLocalStorage) that generates/propagates X-Request-Id for every request; threads the ID through SentryExceptionFilter as a Sentry tag so Sentry events can be cross-referenced with application logs; adds LoggingModule wired globally via AppModule.configure(); includes unit tests asserting ID propagation, concurrent request isolation, and inbound header propagation.

closes #246 - Correct overstated Swagger global description in main.ts: 'all endpoints' rate limiting claim replaced with accurate per-endpoint scoping (authenticated = per-IP + per-wallet, unauthenticated = IP-only); added per-tag notes on Escrow and Webhooks controllers flagging that those endpoints are currently unauthenticated.

closes #242 - Add explicit 5 s timeout to DiscordService.sendWebhook() via the https.request options.timeout field and a req.on('timeout') handler that calls req.destroy(); a hung Discord connection no longer blocks raiseDispute or escalate callers. Test added using a mock TCP server that never responds, asserting notifyDisputeNeedsJurors() resolves within the timeout window.

closes trustflow-protocol#247 - Add CorrelationIdMiddleware (AsyncLocalStorage) that generates/propagates
X-Request-Id for every request; threads the ID through SentryExceptionFilter as a Sentry
tag so Sentry events can be cross-referenced with application logs; adds LoggingModule wired
globally via AppModule.configure(); includes unit tests asserting ID propagation, concurrent
request isolation, and inbound header propagation.

closes trustflow-protocol#246 - Correct overstated Swagger global description in main.ts: 'all endpoints' rate
limiting claim replaced with accurate per-endpoint scoping (authenticated = per-IP + per-wallet,
unauthenticated = IP-only); added per-tag notes on Escrow and Webhooks controllers flagging that
those endpoints are currently unauthenticated.

closes trustflow-protocol#242 - Add explicit 5 s timeout to DiscordService.sendWebhook() via the https.request
options.timeout field and a req.on('timeout') handler that calls req.destroy(); a hung Discord
connection no longer blocks raiseDispute or escalate callers. Test added using a mock TCP server
that never responds, asserting notifyDisputeNeedsJurors() resolves within the timeout window.

closes trustflow-protocol#243 - (unassigned, no changes made)
@OlaGreat
OlaGreat requested a review from meshackyaro as a code owner August 31, 2026 05:36
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@OlaGreat 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

@meshackyaro
meshackyaro merged commit 8e05d2a into trustflow-protocol:main Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants