Skip to content

feat(traces): show in-flight API requests - #11368

Merged
mudler merged 1 commit into
masterfrom
fix/7906-sortable-traces
Aug 5, 2026
Merged

feat(traces): show in-flight API requests#11368
mudler merged 1 commit into
masterfrom
fix/7906-sortable-traces

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Summary

  • register JSON API traces before their handlers run so active requests appear in the existing traces list
  • replace each live entry with its completed persisted exchange under the same trace ID
  • show a Running badge and spinner in the React traces table, and clean up live entries when a handler panics
  • document the live/in-memory lifecycle

Testing

  • go test -race -count=1 ./core/http/middleware
  • React UI production build with Vite
  • inline-style gate (538, at baseline)
  • ESLint on Traces.jsx and traces-live.spec.js (0 errors; existing JSX false-positive warnings only)
  • git diff --check HEAD^ HEAD

The focused Playwright spec is included, but the local downloaded Chromium could not start because this host lacks libglib-2.0.so.0; CI provides the supported browser environment.

Progresses #7906

Register JSON API exchanges before their handlers run so the traces dashboard can surface active work. Replace the live entry with the completed persisted record under the same ID, and clean it up if a handler panics.

Assisted-by: Codex:gpt-5
@mudler
mudler merged commit 9f62401 into master Aug 5, 2026
69 of 70 checks passed
@mudler
mudler deleted the fix/7906-sortable-traces branch August 5, 2026 07:37
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.

2 participants