Commit a9dde43
Wire up XplatLogger for edenfs_events in Rust CLI and config manager
Summary:
Add config-gated routing so edenfs_events telemetry can use XplatLogger instead of the legacy ScubaClient/scribe_cat path. The config flag enable-xplatlogger-events is read from the EdenFS daemon (via thrift) for CLI commands and from the TOML config for the config manager.
- Add send_sample_with_xplatlogger() in edenfs-commands that queries daemon config before routing. If daemon is not running when config is read, it will read the local config (~/.edenrc)
- Add create_telemetry_logger_from_options_with_xplatlogger() in config manager for TOML-based routing
- Add create_logger_with_xplatlogger() and send_with_xplatlogger() APIs in edenfs-telemetry
- Add ConfigData::get_bool() and EdenFsClient::get_enable_xplatlogger_events() for reading the config from the daemon
- Refactor telemetry_disabled() for reuse across logger creation paths
Reviewed By: muirdm, kavehahmadi60
Differential Revision: D105882904
fbshipit-source-id: 1e5a6edd9a1b2f17a00088d28421722795a8ee6c1 parent 44be98b commit a9dde43
2 files changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
66 | 78 | | |
67 | 79 | | |
68 | 80 | | |
| |||
84 | 96 | | |
85 | 97 | | |
86 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
87 | 118 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
68 | 82 | | |
69 | 83 | | |
70 | 84 | | |
| |||
0 commit comments