Skip to content

Commit

Permalink
crates: move metrics to crates directory
Browse files Browse the repository at this point in the history
  • Loading branch information
bmwill authored and bors-libra committed Dec 3, 2021
1 parent 5451612 commit 7e4ad08
Show file tree
Hide file tree
Showing 35 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ members = [
"api/types",
"common/logger",
"common/logger/derive",
"common/metrics",
"common/metrics-core",
"common/num-variants",
"common/proptest-helpers",
"common/rate-limiter",
Expand Down Expand Up @@ -36,6 +34,8 @@ members = [
"crates/diem-id-generator",
"crates/diem-infallible",
"crates/diem-json-rpc-client",
"crates/diem-metrics",
"crates/diem-metrics-core",
"crates/diem-rest-client",
"crates/diem-retrier",
"crates/diem-temppath",
Expand Down
2 changes: 1 addition & 1 deletion api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ diem-crypto = { path = "../crates/diem-crypto" }
diem-json-rpc = { path = "../json-rpc" }
diem-logger = { path = "../common/logger" }
diem-mempool = { path = "../mempool"}
diem-metrics = { path = "../common/metrics" }
diem-metrics = { path = "../crates/diem-metrics" }
diem-types = { path = "../types" }
diem-workspace-hack = { path = "../crates/diem-workspace-hack" }
diem-api-types = { path = "./types", package = "diem-api-types" }
Expand Down
2 changes: 1 addition & 1 deletion common/rate-limiter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ edition = "2018"
diem-infallible = { path= "../../crates/diem-infallible" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }
diem-logger = { path = "../logger" }
diem-metrics = { path = "../metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
futures = "0.3.12"
pin-project = "1.0.5"
tokio = { version = "1.8.1", features = ["full"] }
Expand Down
2 changes: 1 addition & 1 deletion consensus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ diem-config = { path = "../config" }
diem-crypto = { path = "../crates/diem-crypto" }
diem-logger = { path = "../common/logger" }
diem-mempool = { path = "../mempool" }
diem-metrics = { path = "../common/metrics" }
diem-metrics = { path = "../crates/diem-metrics" }
diem-infallible = { path = "../crates/diem-infallible" }
diem-secure-storage = { path = "../secure/storage" }
diem-temppath = { path = "../crates/diem-temppath" }
Expand Down
2 changes: 1 addition & 1 deletion crates/channel/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2018"
[dependencies]
anyhow = "1.0.38"
futures = "0.3.12"
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-infallible = { path = "../../crates/diem-infallible" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }

Expand Down
2 changes: 1 addition & 1 deletion crates/debug-interface/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ warp = "0.3.0"

diem-config = { path = "../../config" }
diem-logger = { path = "../../common/logger" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions common/metrics/Cargo.toml → crates/diem-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ prometheus = { version = "0.12.0", default-features = false }
serde_json = "1.0.64"
tokio = { version = "1.8.1", features = ["full"] }

diem-logger = { path = "../logger" }
diem-metrics-core = { path = "../metrics-core" }
diem-logger = { path = "../../common/logger" }
diem-metrics-core = { path = "../diem-metrics-core" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }

[dev-dependencies]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion diem-move/diem-vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tracing = "0.1.16"
bcs = "0.1.2"
diem-crypto = { path = "../../crates/diem-crypto" }
diem-logger = { path = "../../common/logger" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-state-view = { path = "../../storage/state-view" }
diem-types = { path = "../../types" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }
Expand Down
2 changes: 1 addition & 1 deletion diem-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ diem-genesis-tool = {path = "../config/management/genesis", features = ["testing
diem-json-rpc = { path = "../json-rpc" }
diem-logger = { path = "../common/logger" }
diem-mempool = { path = "../mempool" }
diem-metrics = { path = "../common/metrics" }
diem-metrics = { path = "../crates/diem-metrics" }
diem-secure-storage = { path = "../secure/storage" }
diem-temppath = { path = "../crates/diem-temppath" }
diem-time-service = { path = "../crates/diem-time-service" }
Expand Down
2 changes: 1 addition & 1 deletion execution/executor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ executor-types = { path = "../executor-types" }
bcs = "0.1.2"
diem-crypto = { path = "../../crates/diem-crypto" }
diem-logger = { path = "../../common/logger" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-infallible = { path = "../../crates/diem-infallible" }
diem-secure-net = { path = "../../secure/net" }
diem-state-view = { path = "../../storage/state-view" }
Expand Down
2 changes: 1 addition & 1 deletion json-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ diem-json-rpc-types = { path = "./types", package = "diem-json-rpc-types" }
diem-infallible = { path = "../crates/diem-infallible" }
diem-logger = { path = "../common/logger" }
diem-mempool = { path = "../mempool" }
diem-metrics = { path = "../common/metrics" }
diem-metrics = { path = "../crates/diem-metrics" }
diem-proptest-helpers = { path = "../common/proptest-helpers", optional = true }
diem-types = { path = "../types" }
diem-temppath = { path = "../crates/diem-temppath", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion mempool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bcs = "0.1.2"
diem-config = { path = "../config" }
diem-crypto = { path = "../crates/diem-crypto" }
diem-logger = { path = "../common/logger" }
diem-metrics = { path = "../common/metrics" }
diem-metrics = { path = "../crates/diem-metrics" }
diem-infallible = { path = "../crates/diem-infallible" }
diem-proptest-helpers = { path = "../common/proptest-helpers", optional = true }
diem-types = { path = "../types" }
Expand Down
2 changes: 1 addition & 1 deletion network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ diem-crypto-derive = { path = "../crates/diem-crypto-derive" }
diem-id-generator = { path = "../crates/diem-id-generator" }
diem-infallible = { path = "../crates/diem-infallible" }
diem-logger = { path = "../common/logger" }
diem-metrics = { path = "../common/metrics" }
diem-metrics = { path = "../crates/diem-metrics" }
diem-proptest-helpers = { path = "../common/proptest-helpers", optional = true }
diem-rate-limiter = { path = "../common/rate-limiter"}
diem-time-service = { path = "../crates/diem-time-service", features = ["async"] }
Expand Down
2 changes: 1 addition & 1 deletion network/discovery/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ event-notifications = { path = "../../state-sync/inter-component/event-notificat
diem-config = { path = "../../config"}
diem-crypto = {path = "../../crates/diem-crypto"}
diem-logger = {path = "../../common/logger"}
diem-metrics = {path = "../../common/metrics"}
diem-metrics = {path = "../../crates/diem-metrics"}
diem-time-service = {path = "../../crates/diem-time-service"}
diem-secure-storage = { path = "../../secure/storage" }
diem-network-address-encryption = {path = "../../config/management/network-address-encryption"}
Expand Down
2 changes: 1 addition & 1 deletion secure/push-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ edition = "2018"
[dependencies]
ureq = { version = "1.5.4", features = ["json", "native-tls"], default-features = false }
diem-logger = { path = "../../common/logger" }
diem-metrics-core = { path = "../../common/metrics-core" }
diem-metrics-core = { path = "../../crates/diem-metrics-core" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }
2 changes: 1 addition & 1 deletion state-sync/state-sync-v1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ diem-crypto = { path = "../../crates/diem-crypto" }
diem-infallible = { path = "../../crates/diem-infallible" }
diem-logger = { path = "../../common/logger" }
diem-mempool = { path = "../../mempool"}
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-proptest-helpers = { path = "../../common/proptest-helpers", optional = true }
diem-temppath = { path = "../../crates/diem-temppath" }
diem-types = { path = "../../types" }
Expand Down
2 changes: 1 addition & 1 deletion state-sync/state-sync-v2/data-streaming-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ diem-data-client = { path = "../../diem-data-client" }
diem-id-generator = { path = "../../../crates/diem-id-generator" }
diem-infallible = { path = "../../../crates/diem-infallible" }
diem-logger = { path = "../../../common/logger" }
diem-metrics = { path = "../../../common/metrics" }
diem-metrics = { path = "../../../crates/diem-metrics" }
diem-types = { path = "../../../types" }
diem-workspace-hack = { path = "../../../crates/diem-workspace-hack" }
network = { path = "../../../network" }
Expand Down
2 changes: 1 addition & 1 deletion state-sync/storage-service/server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ bounded-executor = { path = "../../../crates/bounded-executor" }
channel = { path = "../../../crates/channel" }
diem-config = { path = "../../../config" }
diem-logger = { path = "../../../common/logger" }
diem-metrics = { path = "../../../common/metrics" }
diem-metrics = { path = "../../../crates/diem-metrics" }
diem-types = { path = "../../../types" }
diem-workspace-hack = { path = "../../../crates/diem-workspace-hack" }
network = { path = "../../../network" }
Expand Down
2 changes: 1 addition & 1 deletion storage/backup/backup-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ warp = "0.3.0"
bcs = "0.1.2"
diem-crypto = { path = "../../../crates/diem-crypto" }
diem-logger = { path = "../../../common/logger" }
diem-metrics = { path = "../../../common/metrics" }
diem-metrics = { path = "../../../crates/diem-metrics" }
diem-types = { path = "../../../types" }
diem-workspace-hack = { path = "../../../crates/diem-workspace-hack" }
diemdb = { path = "../../diemdb" }
Expand Down
2 changes: 1 addition & 1 deletion storage/diemdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ diem-config = { path = "../../config" }
diem-crypto = { path = "../../crates/diem-crypto" }
diem-jellyfish-merkle = { path = "../jellyfish-merkle" }
diem-logger = { path = "../../common/logger" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-infallible = { path = "../../crates/diem-infallible" }
diem-proptest-helpers = { path = "../../common/proptest-helpers", optional = true }
diem-temppath = { path = "../../crates/diem-temppath", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion storage/jellyfish-merkle/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bcs = "0.1.2"
diem-crypto = { path = "../../crates/diem-crypto" }
diem-crypto-derive = { path = "../../crates/diem-crypto-derive" }
diem-infallible = { path = "../../crates/diem-infallible" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-types = { path = "../../types" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }
storage-interface = { path = "../storage-interface" }
Expand Down
2 changes: 1 addition & 1 deletion storage/schemadb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ proptest = {version = "1.0.0", optional = true}

diem-config = { path = "../../config" }
diem-logger = { path = "../../common/logger" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }

[dependencies.rocksdb]
Expand Down
2 changes: 1 addition & 1 deletion storage/storage-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ diem-config = { path = "../../config" }
diem-crypto = { path = "../../crates/diem-crypto" }
diemdb = { path = "../diemdb" }
diem-logger = { path = "../../common/logger" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-secure-net = { path = "../../secure/net" }
storage-interface = { path = "../storage-interface" }
diem-types = { path = "../../types" }
Expand Down
2 changes: 1 addition & 1 deletion testsuite/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ diem-wallet = { path = "diem-wallet" }
diem-client = { path = "../../crates/diem-client" }
diem-infallible = { path = "../../crates/diem-infallible" }
diem-logger = { path = "../../common/logger" }
diem-metrics = { path = "../../common/metrics" }
diem-metrics = { path = "../../crates/diem-metrics" }
diem-types = { path = "../../types" }
diem-temppath = { path = "../../crates/diem-temppath/" }
diem-workspace-hack = { path = "../../crates/diem-workspace-hack" }
Expand Down

0 comments on commit 7e4ad08

Please sign in to comment.