15 Commits

Author SHA1 Message Date
Regal 117531111d test: wait for submitted spans to be collected (#3448)
Wait for the asynchronous span collector to release root client spans
after Controller reset or submission. This prevents LeakSanitizer from
reporting pending test spans when the short-lived test binary exits
before the collector’s first polling interval.

Signed-off-by: Zhengwei Zhu <141622927+ZhengweiZhu@users.noreply.github.com>
2026-08-15 09:42:04 +08:00
lh2debug-2 cb84e83c59 fix rpcz root client span lifetime (#3420) (#3421)
Keep the current RPC span alive from Controller until the RPC finishes,
SubmitSpan runs, or the Controller is reset. This lets root client spans
without a local parent be submitted to rpcz instead of being destroyed
after the caller-side temporary shared_ptr goes out of scope.

Child client spans remain linked to their parent through weak local-parent
references and parent-owned client lists, so they are still serialized
under their parent without introducing shared_ptr cycles.

Co-authored-by: lh2debug <lh2debug@163.com>
2026-08-09 15:03:54 +08:00
Bright Chen 53026cdea1 Small FlatMap optimization with default initialization (#2620)
* Small FlatMap optimization

* Support optional
2024-12-09 09:57:38 +08:00
jamesge 20f2b4a887 Support pass down request_id 2020-11-29 16:07:25 +08:00
jamesge d06e330533 Use = as non-json sep; Rename LOG* macros to CLOG* 2020-11-29 13:56:35 +08:00
jamesge 5f7e0480ba Replace previous hacky impl. of appending postfix to ostream with a safer one and lose the -log_as_json support for glog 2020-11-27 15:33:45 +08:00
jamesge ce7c45f182 Make code compile for glog 2020-11-26 19:34:04 +08:00
jamesge 86acfa893d add Controller.SessionKV() to record and print session-level KV; Add LOGD/I/W/E/F to print contextual log; Add flag -log_as_json to print logs as valid JSON 2020-11-26 14:11:20 +08:00
Weibing Wang 078051f9bf Update license header to Apache 2019-06-20 14:22:57 +08:00
gejun 09cc273d34 Replace 'Baidu RPC' with 'brpc' 2017-11-03 14:14:50 +08:00
gejun 80f9f2f160 Rename base to butil to avoid potential naming conflicts 2017-09-08 17:17:35 +08:00
gejun 023371e643 Change copyright to Baidu, Inc 2017-09-05 19:44:12 +08:00
gejun 24c64eaa2b Patch svn r35218 2017-09-04 17:12:59 +08:00
gejun 0630ae1e8a Patch svn r35206 & fix compilation of tools 2017-09-02 18:29:40 +08:00
gejun 7998155962 first working CI
Change-Id: I68c0cafba040debefd660c5213f21e6fc702a4a6
2017-07-25 23:02:28 +08:00