mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
83c54b48f8
Summary: Move `ScubaMiddleware` out of the LFS server and into `gotham_ext`. This change required splitting up the `ScubaKey` enum to separate generally useful column names (e.g., HTTP columns that would be applicable to any HTTP service) from LFS-specific columns. `ScubaMiddlwareState` has been modified to accept any type that implements `Into<String>` as a key, and the `ScubaKey` enum has been split up into `HttpScubaKey` (in `gotham_ext`) and `LfsScubaKey` (in `lfs_server`). The middleware now takes a type parameter to specify a "handler" (implementing the new `ScubaHandler` trait) which allows the application to add application-specific Scuba columns in addition to the default columns. The application-specific columns will be added immediately prior to the sample being logged. Reviewed By: krallin Differential Revision: D23458748 fbshipit-source-id: 3e99f3e0b5d3475a4f5ac9eaefade2eeff12c2fa |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |