Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
7320fa5b
Commit
7320fa5b
authored
Jul 04, 2018
by
Ge Jun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show metrics of thrift_service on /status
parent
e6bf9210
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
status_service.cpp
src/brpc/builtin/status_service.cpp
+12
-0
No files found.
src/brpc/builtin/status_service.cpp
View file @
7320fa5b
...
...
@@ -22,6 +22,7 @@
#include "brpc/details/method_status.h" // MethodStatus
#include "brpc/builtin/status_service.h"
#include "brpc/nshead_service.h" // NsheadService
#include "brpc/thrift_service.h" // ThriftService
#include "brpc/rtmp.h" // RtmpService
#include "brpc/builtin/common.h"
...
...
@@ -187,6 +188,17 @@ void StatusService::default_method(::google::protobuf::RpcController* cntl_base,
nshead_svc
->
_status
->
Describe
(
os
,
desc_options
);
os
<<
'\n'
;
}
const
ThriftService
*
thrift_svc
=
server
->
options
().
thrift_service
;
if
(
thrift_svc
&&
thrift_svc
->
_status
)
{
DescribeOptions
options
;
options
.
verbose
=
false
;
options
.
use_html
=
use_html
;
os
<<
(
use_html
?
"<h3>"
:
"["
);
thrift_svc
->
Describe
(
os
,
options
);
os
<<
(
use_html
?
"</h3>
\n
"
:
"]
\n
"
);
thrift_svc
->
_status
->
Describe
(
os
,
desc_options
);
os
<<
'\n'
;
}
if
(
policy
::
g_server_msg_status
)
{
DescribeOptions
options
;
options
.
verbose
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment