Skip to content

fix: display exception message in trace output column when outputs is nullfix: display exception message in trace output column when outputs is…#4747

Open
unfitcoder101 wants to merge 1 commit into
Agenta-AI:mainfrom
unfitcoder101:fix/exception-display-in-trace-output-column
Open

fix: display exception message in trace output column when outputs is nullfix: display exception message in trace output column when outputs is…#4747
unfitcoder101 wants to merge 1 commit into
Agenta-AI:mainfrom
unfitcoder101:fix/exception-display-in-trace-output-column

Conversation

@unfitcoder101

@unfitcoder101 unfitcoder101 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Display exception message in the trace output column when outputs are null.

Previously, when a trace span had an exception event but no outputs,
the output column showed an em dash (—). Now it shows the exception
message/type in red so users can immediately see what failed without
opening the trace detail view.

Changes

  • Modified getObservabilityColumns.tsx to check record.events for exception events when outputs are null
  • Display exception.message or exception.type as fallback text
  • Exception styled in red for visual distinction

Demo

Screenshot 2026-06-19 at 2 44 29 AM Screenshot 2026-06-19 at 2 44 35 AM

Issue

Fixes #4731

… null

When a trace span contains an exception event but no outputs,
the output column in the observability table showed an em dash (—).
This fix checks for exception events and displays the exception
message/type in red when outputs are absent.

Fixes Agenta-AI#4731
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 18, 2026
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@unfitcoder101 is attempting to deploy a commit to the agenta projects Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot Bot added Bug Report Something isn't working Frontend labels Jun 18, 2026
@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

✅ Thanks @unfitcoder101! This PR now meets the contribution requirements and has been reopened. A maintainer will review it soon.

@github-actions github-actions Bot added the incomplete-pr PR is missing required template sections or a demo recording label Jun 18, 2026
@github-actions github-actions Bot closed this Jun 18, 2026
@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f147200d-cf87-4bfa-85fa-8c3af24334dd

📥 Commits

Reviewing files that changed from the base of the PR and between a97e608 and 2646663.

📒 Files selected for processing (1)
  • web/oss/src/components/pages/observability/assets/getObservabilityColumns.tsx

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • The Outputs column now displays exception messages when trace outputs are unavailable, highlighted in red for better visibility.

Walkthrough

The "Outputs" column renderer in the observability table is updated to detect a missing outputs value paired with an exception event on the trace record. When that condition is met, it extracts the exception message from attributes (with fallbacks to exception.type or "Exception") and renders it via SmartCellContent with red text styling.

Changes

Exception fallback in Outputs column

Layer / File(s) Summary
Outputs column exception fallback rendering
web/oss/src/components/pages/observability/assets/getObservabilityColumns.tsx
The render function now computes outputs, locates an exception event in the record, and sanitizes outputs when present. If outputs is falsy and an exception event exists, it renders the exception message (using exception.message, falling back to exception.type or "Exception") via SmartCellContent with red text styling instead of the previous em-dash placeholder.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot removed the incomplete-pr PR is missing required template sections or a demo recording label Jun 18, 2026
@github-actions github-actions Bot reopened this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Report Something isn't working Frontend size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] In the observability trace table, we are not displaying the exceptions in the output column

1 participant