You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ai-exception-insights-starter/src/main/java/io/github/rexrk/exception/insights/autoconfigure/AiExceptionInsightsAutoConfiguration.java
Copy file name to clipboardExpand all lines: ai-exception-insights-starter/src/main/java/io/github/rexrk/exception/insights/service/output/ui/UiErrorOutput.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ public UiErrorOutput(SseEmitterRegistry registry) {
18
18
@Override
19
19
publicvoidonErrorCaptured(ErrorEventevent) {
20
20
DashboardEventdashboardEvent = newDashboardEvent(
21
+
event.getId(),
21
22
event.getType().name(),
22
23
event.getExceptionClass(),
23
24
LocalDateTime.now().toString()
@@ -29,6 +30,7 @@ public void onErrorCaptured(ErrorEvent event) {
{level: 'INFO',message: 'Request received: POST /api/users',loggerName: 'com.example.RequestFilter',threadName: 'http-nio-8080',timestamp: '2026-04-20T10:29:58Z'}
14
15
],
15
16
aiExplanation: {
16
17
summary: 'A null value was returned by getUser() and dereferenced without a null check, causing a NullPointerException during user creation.',
17
18
causes: ['UserRepository.findById() returned null and was not checked before use','The user lookup was skipped due to missing validation in the request pipeline'],
18
-
fixes: ['Add a null check after calling getUser() and return a 404 if the user is absent','Ensure request validation runs before the service layer is invoked','Consider using Optional<User> to make null-safety explicit']
19
+
fixes: ['Add a null check after calling getUser() and return a 404 if the user is absent','Ensure request validation runs before the service layer is invoked','Consider using Optional<User> to make null-safety explicit']
summary: 'Two concurrent transactions attempted to update the same row simultaneously; the second update detected a version mismatch and was rolled back.',
41
-
causes: ['Concurrent requests modified the same Order entity without coordination','The version column was not refreshed before the second write'],
42
-
fixes: ['Implement retry logic with exponential backoff for OptimisticLockException','Reduce transaction scope to minimize contention window','Use pessimistic locking for high-contention entities if conflicts are frequent']
summary: 'The async email batch task exceeded the 30-second execution timeout, likely due to a large queue backed up by slow SMTP responses.',
56
-
causes: ['Queue size of 847 items exceeded expected throughput for the timeout window','SMTP server response times may have degraded'],
57
-
fixes: ['Increase the async task timeout or split batches into smaller chunks','Add circuit-breaker logic for slow external SMTP dependencies','Monitor queue depth and implement backpressure']
58
-
}
59
-
}
60
32
];
61
33
62
-
// ── State ────────────────────────────────────────────────
34
+
// ── State ─────────────────────────────────────────────────
0 commit comments