-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[dashboard] unify error reporting #18726
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
Conversation
a59a371
to
3e21102
Compare
move error boundary to general error reporting endpoint as well
3e21102
to
773444c
Compare
// Cap message and url length so the entries aren't of unbounded length | ||
log.warn("dashboard error boundary", { | ||
message: (message || "").substring(0, 200), | ||
url: (url || "").substring(0, 200), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was leaking sensitive data in some URLs
@@ -264,15 +263,6 @@ export function observeSpicedbClientLatency(operation: string, outcome: Error | | |||
); | |||
} | |||
|
|||
export const dashboardErrorBoundary = new prometheusClient.Counter({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is already available in GCP if one search for the message
Code LGTM, waiting for a preview env... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, tested and works ✔️
/unhold |
Description
In #18691 we moved to dashboard to use metrics endpoint used already by other clients to collect client observability metrics and errors. This PR is a follow up to clean up other places where custom code was used.
Summary generated by Copilot
🤖 Generated by Copilot at a59a371
Improved error reporting for dashboard error boundaries and deprecated server-side method. Refactored
reportError
function and fixed a bug inmetrics.ts
.Related Issue(s)
Fixes #
How to test
new Promise((_,reject) => reject(new Error("foobar")))
in devtoolreportError
is called with all necessary info including user id from network tab.Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold