sapling/eden/mononoke/common
Kostia Balytskyi e4dab84619 scuba: turn ScubaSampleBuilderExt into a wrapper struct
Summary:
This diff prepares the Mononoke codebase for composition-based extendability of
`ScubaSampleBuilder`. Specifically, in the near future I will add:
- new methods for verbose scuba logging
- new data field (`ObservabilityContext`) to check if verbose logging should
  be enabled or disabled

The higher-level goal here is to be able to enable/disable verbose Scuba
logging (either overall or for certain slices of logs, like for a certain
session id) in real time, without restarting Mononoke. To do so, I plan to
expose the aforementioned verbose logging methods, which will run a check
against the stored `ObservabilityContext` and make a decision of whether the
logging is enabled or not. `ObservabilityContext` will of course hide
implementation details from the renamed `ScubaSampleBuilderExt`, and just provide a yes/no
answer based on the current config and sample fields.

At the moment this should be a completely harmless change.

Reviewed By: krallin

Differential Revision: D25211089

fbshipit-source-id: ea03dda82fadb7fc91a2433e12e220582ede5fb8
2020-11-30 21:26:24 -08:00
..
allocation_tracing mononoke: reverse autocargo include list to excludes 2020-05-06 08:43:18 -07:00
async_limiter Regenerate all Cargo.tomls after upgrade to futures 0.3.5 2020-07-06 20:49:43 -07:00
bounded_traversal add variant of bounded_traversal_stream which accepts children in the form of a stream 2020-10-07 03:38:28 -07:00
dedupmap rust: update rust to 1.47.0 2020-10-15 17:28:02 -07:00
iterhelpers common: add iterhelpers 2020-10-04 23:51:03 -07:00
rust mononoke/sql: fix connection to the sharded db 2020-11-19 13:16:01 -08:00
scribe_ext mononoke: add Scribe 2020-06-29 12:15:22 -07:00
scuba_ext scuba: turn ScubaSampleBuilderExt into a wrapper struct 2020-11-30 21:26:24 -08:00
sql_construct mononoke/mysql: share single connection pool in the same SMC between shards 2020-11-05 05:34:22 -08:00
topo_sort Prepare for rustfmt 2.0 2020-09-08 07:33:16 -07:00
type_map make it possible to store arbitrary type in blobrepo with dependency on it 2020-06-22 07:29:19 -07:00
uniqueheap mononoke: make blobrepo and its dependencies OSS buildable 2020-03-31 04:02:45 -07:00