mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
e4dab84619
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
40 lines
1.5 KiB
TOML
40 lines
1.5 KiB
TOML
[package]
|
|
name = "segmented_changelog"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["schemas/**/*.sql", "src/**/*.rs"]
|
|
|
|
[dependencies]
|
|
blobrepo = { path = "../blobrepo" }
|
|
blobstore = { path = "../blobstore" }
|
|
bookmarks = { path = "../bookmarks" }
|
|
bulkops = { path = "../bulkops" }
|
|
changeset_fetcher = { path = "../blobrepo/changeset_fetcher" }
|
|
changesets = { path = "../changesets" }
|
|
context = { path = "../server/context" }
|
|
dag = { path = "../../scm/lib/dag", features = ["for-tests"] }
|
|
mincode = { path = "../../scm/lib/mincode" }
|
|
mononoke_types = { path = "../mononoke_types" }
|
|
scuba_ext = { path = "../common/scuba_ext" }
|
|
sql_construct = { path = "../common/sql_construct" }
|
|
sql_ext = { path = "../common/rust/sql_ext" }
|
|
sql = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
stats = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
anyhow = "1.0"
|
|
async-trait = "0.1.29"
|
|
futures = { version = "0.3.5", features = ["async-await", "compat"] }
|
|
maplit = "1.0"
|
|
slog = { version = "2.5", features = ["max_level_debug"] }
|
|
tokio = { version = "=0.2.13", features = ["full"] }
|
|
|
|
[dev-dependencies]
|
|
fixtures = { path = "../tests/fixtures" }
|
|
mononoke_types-mocks = { path = "../mononoke_types/mocks" }
|
|
phases = { path = "../phases" }
|
|
revset = { path = "../revset" }
|
|
tests_utils = { path = "../tests/utils" }
|
|
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
tokio-compat = "0.1"
|