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 get group id for quota interceptor #2282

Merged
merged 2 commits into from
Jul 15, 2022
Merged

Fix get group id for quota interceptor #2282

merged 2 commits into from
Jul 15, 2022

Conversation

luluz66
Copy link
Contributor

@luluz66 luluz66 commented Jul 15, 2022

Rename record metrics interceptor to quota b/c we are also checking
quota in that interceptor.

Put the quota interceptor after the auth one.

Rename record metrics interceptor to quota b/c we are also checking
quota in that interceptor.

Put the quota interceptor after the auth one.
@luluz66 luluz66 marked this pull request as ready for review July 15, 2022 16:15
@@ -213,6 +213,7 @@ func recordRequestMetricsUnaryServerInterceptor(env environment.Env) grpc.UnaryS
}
if *enableGRPCMetricsByGroupID {
if key, err := quota.GetKey(ctx, env); err == nil {
log.Info("quota key is %q, key")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@luluz66 luluz66 merged commit 908292e into master Jul 15, 2022
@luluz66 luluz66 deleted the quota-key branch July 15, 2022 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants