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:
Arun Kulshreshtha 2018-06-25 16:50:38 -07:00 committed by Facebook Github Bot
parent 8cc3743269
commit 1bd8ce3513

View File

@ -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?),