mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
Register tracing fb303 handlers
Summary: Make it possible to enable and disable tracing in Mononoke via fb303 thrift calls. Reviewed By: StanislavGlebik Differential Revision: D8553236 fbshipit-source-id: 6c962fcf7f753f200bf865c403da12b0f9619221
This commit is contained in:
parent
8cc3743269
commit
1bd8ce3513
@ -67,6 +67,7 @@ extern crate stats;
|
||||
extern crate time_ext;
|
||||
#[macro_use]
|
||||
extern crate tracing;
|
||||
extern crate tracing_fb303;
|
||||
extern crate upload_trace;
|
||||
|
||||
mod errors;
|
||||
@ -550,6 +551,8 @@ fn main() {
|
||||
.expect("listening path must be specified"),
|
||||
)?;
|
||||
|
||||
tracing_fb303::register();
|
||||
|
||||
let maybe_thrift = match monitoring::start_thrift_service(&root_log, &matches, ready) {
|
||||
None => None,
|
||||
Some(handle) => Some(handle?),
|
||||
|
Loading…
Reference in New Issue
Block a user