Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: display error in inspect page #1188

Merged
merged 4 commits into from
Nov 20, 2024
Merged

Conversation

alonsopec89
Copy link
Contributor

Currently we are not displaying the error, with this PR we'll be able to see them
Screenshot 2024-11-05 6 06 52 PM

Checklist (if applicable):

  • [ X] Tested (manually, unit tested, etc.)
  • Docs updated

@alonsopec89 alonsopec89 requested a review from apascal07 November 6, 2024 00:08
@MichaelDoyle
Copy link
Member

MichaelDoyle commented Nov 6, 2024

How can we change this such that the error messaging shows up in the error callout, instead of showing up as "output"?

Potentially span.RecordError(err)? I believe that's how it works in TS.

See also:

@alonsopec89
Copy link
Contributor Author

How can we change this such that the error messaging shows up in the error callout, instead of showing up as "output"?

Potentially span.RecordError(err)? I believe that's how it works in TS.

See also:

@MichaelDoyle span.RecordError(err) is not enough, we need the status.code == 2, but since the enum from opentelemetry the 2 is "Ok" , should we use our own enum?

@MichaelDoyle
Copy link
Member

Ah - thanks. That's really unfortunate. :) I think using the codes.Error is still the right thing to do, even though it doesn't match.

I found some more context: open-telemetry/opentelemetry-go#2098

We might need to set things up such that the traces page in the dev ui is aware of which runtime the trace/spans came from and does the appropriate conversion.

@MichaelDoyle
Copy link
Member

I just submitted https://github.com/FirebasePrivate/genkit-ui/pull/1096 which I think will help - can you try w/ the latest dev ui code (next branch) and see how that looks?

@MichaelDoyle
Copy link
Member

Did this end up working out? Got a more recent screenshot?

@alonsopec89 alonsopec89 changed the base branch from next to main November 15, 2024 18:04
@alonsopec89
Copy link
Contributor Author

Did this end up working out? Got a more recent screenshot?

@MichaelDoyle It is still working in the newest version
Screenshot_2024-11-18_at_8 21 06_a m

@alonsopec89 alonsopec89 self-assigned this Nov 18, 2024
@MichaelDoyle MichaelDoyle self-requested a review November 20, 2024 02:16
@alonsopec89 alonsopec89 merged commit a2ba196 into main Nov 20, 2024
5 checks passed
@alonsopec89 alonsopec89 deleted the output-the-go-error-in-inspect branch November 20, 2024 14:21
hugoaguirre pushed a commit that referenced this pull request Nov 25, 2024
* Fix: display error in inspect page

* Fix: display error in error callout

* Fix: use the right enum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants