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 rpc_var.cc compile error on windows and some bugs #224

Merged
merged 1 commit into from
Jun 7, 2022

Conversation

holmes1412
Copy link
Contributor

可以通过的测试如下:

valgrind --leak-check=full ./tutorial/server_with_metrics
[@gdylj_35_53 example]# /search/ted/srpc_1412/tutorial/srpc_pb_client 
message: "Hi back"

message: "Hi back"

^C
[@gdylj_35_53 example]# /search/ted/srpc_1412/tutorial/srpc_pb_client 
message: "Hi back"

message: "Hi back"

^C
[@gdylj_35_53 example]# /search/ted/srpc_1412/tutorial/srpc_pb_client 
message: "Hi back"

message: "Hi back"

^C
[@gdylj_35_53 example]# curl localhost:8080/metrics
# HELP total_request_count total request count
# TYPE total_request_count gauge
total_request_count 6.000000
# HELP total_request_method request method statistics
# TYPE total_request_method counter
total_request_method{method="Echo",service="Example"} 6.000000
# HELP total_request_latency request latency nano seconds
# TYPE total_request_latency summary
total_request_latency{quantile="0.500000"} 2679120.000000
total_request_latency{quantile="0.900000"} 174216489.000000
total_request_latency_sum 184336578.000000
total_request_latency_count 6
# HELP echo_request_size Echo request size
# TYPE echo_request_size histogram
echo_request_size_bucket{le="1.000000"} 0
echo_request_size_bucket{le="10.000000"} 0
echo_request_size_bucket{le="100.000000"} 6
echo_request_size_bucket{le="+Inf"} 6
echo_request_size_sum 120.000000
echo_request_size_count 6
# HELP echo_test_quantiles Test quantile
# TYPE echo_test_quantiles summary
echo_test_quantiles{quantile="0.500000"} 0.040000
echo_test_quantiles{quantile="0.900000"} 0.080000
echo_test_quantiles_sum 3.300000
echo_test_quantiles_count 60
[@gdylj_35_53 example]# /search/ted/srpc_1412/tutorial/srpc_pb_client 
message: "Hi back"

message: "Hi back"

^C
[@gdylj_35_53 example]# curl localhost:8080/metrics
# HELP total_request_count total request count
# TYPE total_request_count gauge
total_request_count 8.000000
# HELP total_request_method request method statistics
# TYPE total_request_method counter
total_request_method{method="Echo",service="Example"} 8.000000
# HELP total_request_latency request latency nano seconds
# TYPE total_request_latency summary
total_request_latency{quantile="0.500000"} 2642570.000000
total_request_latency{quantile="0.900000"} 2679120.000000
total_request_latency_sum 187646001.000000
total_request_latency_count 8
# HELP echo_request_size Echo request size
# TYPE echo_request_size histogram
echo_request_size_bucket{le="1.000000"} 0
echo_request_size_bucket{le="10.000000"} 0
echo_request_size_bucket{le="100.000000"} 8
echo_request_size_bucket{le="+Inf"} 8
echo_request_size_sum 160.000000
echo_request_size_count 8
# HELP echo_test_quantiles Test quantile
# TYPE echo_test_quantiles summary
echo_test_quantiles{quantile="0.500000"} 0.050000
echo_test_quantiles{quantile="0.900000"} 0.090000
echo_test_quantiles_sum 4.400000
echo_test_quantiles_count 80

@Barenboim Barenboim merged commit 08f3032 into sogou:master Jun 7, 2022
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