-
Notifications
You must be signed in to change notification settings - Fork 1.3k
node grpc spike dashboard to server #18691
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
7d7f55d
to
f4c1eaa
Compare
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
1051a69
to
5565cd8
Compare
|
||
// Trigger the next middleware in the chain. | ||
next(); | ||
return await this.userService.findUserById(subject, subject); | ||
} catch (err) { | ||
log.warn("Failed to authenticate user with JWT Session", err); |
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.
not sure here, maybe we should call next with err, but maybe not
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.
This PR did not change the semantic though. Pleas review for it 🙏
} | ||
|
||
export class MetricsReporter { | ||
private static readonly REPORT_INTERVAL = 10000; |
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.
we can increase it to 1 min and instead do a final flush with https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon if it turns out to be a problem later
Starting to review now. |
}, | ||
}), | ||
); | ||
// TODO(al) cover unhandled cases |
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.
👍
|
||
const context = args[1] as HandlerContext; | ||
async function call<T>(): Promise<T> { | ||
const user = await self.verify(context); |
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.
nit: As discussed IMO we could pull this (and some of the metrics here) into middleware. But not a priority for this PR.
For some reason I never see any Hello RPC method triggered... metrics work fine though. 🤔 I wonder whether that feature flag evaluates to true.... |
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. ✔️
Was just tired yesterday 😅
Two small nits: https://github.com/gitpod-io/gitpod/pull/18691/files#r1326861983
/unhold |
Description
Summary generated by Copilot
🤖 Generated by Copilot at c251d76
This pull request adds new files that define and generate code for a dummy service for reliability testing using various protobuf and connect libraries. The files include a protobuf file, go files for grpc and connect-go clients and servers, and typescript files for connect-web clients and messages.
Related Issue(s)
Fixes EXP-571
How to test
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