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

add an option to enable grpc tracing #3519

Merged
merged 1 commit into from
Jan 3, 2018

Conversation

demmer
Copy link
Member

@demmer demmer commented Jan 2, 2018

GRPC has an option to enable tracing using the builtin golang net tracing package:
https://godoc.org/golang.org/x/net/trace

Add a flag to enable tracing the first time a grpc client or server is created.

@bbeaudreault
Copy link
Contributor

I thought it was enabled by default. Did you try hitting the endpoints? They work for us with no configuration.

@bbeaudreault
Copy link
Contributor

bbeaudreault commented Jan 3, 2018

Actually, i see this was disabled by default 4 months ago. grpc/grpc-go@3214f76

cc @hmcgonig

@sougou
Copy link
Contributor

sougou commented Jan 3, 2018

I feel like this should always be enabled, but not sure what the overhead is. Should we default the flag to true instead? Thoughts?

@demmer
Copy link
Member Author

demmer commented Jan 3, 2018 via email

@sougou
Copy link
Contributor

sougou commented Jan 3, 2018

LGTM
According to this, there's a price to pay: grpc/grpc-go#695. It looks like they might have fixed that particular cost separately, but let's play it safe.

Approved with PullApprove

@sougou sougou merged commit 3531eb9 into vitessio:master Jan 3, 2018
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.

4 participants