Skip to content

Conversation

@falonso81
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

@falonso81 falonso81 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:

@falonso81
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?

@falonso81 falonso81 changed the base branch from next to main November 15, 2024 18:04
@falonso81
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

@falonso81 falonso81 self-assigned this Nov 18, 2024
@MichaelDoyle MichaelDoyle self-requested a review November 20, 2024 02:16
@falonso81 falonso81 merged commit a2ba196 into main Nov 20, 2024
5 checks passed
@falonso81 falonso81 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
@falonso81 falonso81 linked an issue Feb 4, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Go] missing tracing metadata

2 participants