Skip to content

Fix dashboard log stream loading feedback when disabled#9922

Merged
ReubenBond merged 3 commits into
dotnet:mainfrom
miguelhasse:fix/dashboard-logstream
Feb 17, 2026
Merged

Fix dashboard log stream loading feedback when disabled#9922
ReubenBond merged 3 commits into
dotnet:mainfrom
miguelhasse:fix/dashboard-logstream

Conversation

@miguelhasse

@miguelhasse miguelhasse commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Improve error feedback for log stream and trace endpoint

Enhanced error handling in log-stream.tsx to display detailed messages on 403 responses. Updated /Trace endpoint to return descriptive problem details when disabled, instead of a plain 403 status.

Microsoft Reviewers: Open in CodeFlow

Enhanced error handling in log-stream.tsx to display detailed messages on 403 responses. Updated /Trace endpoint to return descriptive problem details when disabled, instead of a plain 403 status.
Copilot AI review requested due to automatic review settings February 16, 2026 09:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves error feedback for the dashboard's log stream feature when the trace endpoint is disabled. Instead of returning a plain 403 status code, the backend now returns a structured Problem Details response with a descriptive error message. The frontend is updated to parse and display this error message.

Changes:

  • Backend: Modified /Trace endpoint to return Results.Problem with descriptive error message when HideTrace is enabled
  • Frontend: Updated log-stream component to parse JSON from 403 responses and extract the error detail message

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ServiceCollectionExtensions.cs Changed /Trace endpoint to return structured Problem Details response instead of plain 403 when trace is disabled
log-stream.tsx Added logic to parse 403 responses as JSON and display the error detail message

Comment thread src/Dashboard/Orleans.Dashboard.App/src/logstream/log-stream.tsx Outdated
Comment thread src/Dashboard/Orleans.Dashboard.App/src/logstream/log-stream.tsx Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ReubenBond ReubenBond enabled auto-merge February 16, 2026 23:04
@ReubenBond ReubenBond added this pull request to the merge queue Feb 16, 2026
Merged via the queue into dotnet:main with commit 47f00da Feb 17, 2026
59 checks passed
rkargMsft pushed a commit to rkargMsft/orleans that referenced this pull request Feb 27, 2026
* Improve error feedback for log stream and trace endpoint

Enhanced error handling in log-stream.tsx to display detailed messages on 403 responses. Updated /Trace endpoint to return descriptive problem details when disabled, instead of a plain 403 status.

* Handle log stream 403 responses safely

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Reuben Bond <reuben.bond@gmail.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants