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

feat: sp service adds metrics #239

Merged
merged 2 commits into from
Mar 28, 2023
Merged

feat: sp service adds metrics #239

merged 2 commits into from
Mar 28, 2023

Conversation

sysvm
Copy link
Collaborator

@sysvm sysvm commented Mar 24, 2023

Description

All sp services add metrics

Rationale

For better monitoring.

Example

N/A

Changes

Notable changes:
N/A

@sysvm sysvm added the wip Working in process label Mar 24, 2023
// GetDefaultServerOptions returns default gRPC server options
func GetDefaultServerOptions() []grpc.ServerOption {
options := []grpc.ServerOption{}
options = append(options, grpc.MaxRecvMsgSize(model.MaxCallMsgSize))
Copy link
Contributor

Choose a reason for hiding this comment

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

options = append(options, grpc.WithTransportCredentials(insecure.NewCredentials()))
no need the Credentials?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

grpc sever doesn't need NewCredentials

@sysvm sysvm added r4r Ready for review and removed wip Working in process labels Mar 28, 2023
@joeylichang joeylichang merged commit 812a9ea into develop Mar 28, 2023
@joeylichang joeylichang deleted the feat-spmetrics branch March 28, 2023 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r4r Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants