MCPcopy Create free account
hub / github.com/apache/brpc / Expose

Method Expose

src/brpc/details/method_status.cpp:50–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50int MethodStatus::Expose(const butil::StringPiece& prefix) {
51 if (_nconcurrency_bvar.expose_as(prefix, "concurrency") != 0) {
52 return -1;
53 }
54 if (_nerror_bvar.expose_as(prefix, "error") != 0) {
55 return -1;
56 }
57 if (_eps_bvar.expose_as(prefix, "eps") != 0) {
58 return -1;
59 }
60 if (_latency_rec.expose(prefix) != 0) {
61 return -1;
62 }
63 if (_cl) {
64 if (_max_concurrency_bvar.expose_as(prefix, "max_concurrency") != 0) {
65 return -1;
66 }
67 }
68 return 0;
69}
70
71template <typename T>
72void OutputTextValue(std::ostream& os,

Callers 2

InitClientMessageStatusFunction · 0.45
InitServerMessageStatusFunction · 0.45

Calls 2

expose_asMethod · 0.45
exposeMethod · 0.45

Tested by

no test coverage detected