Skip to content

Commit b7c15f4

Browse files
authored
feat: metrics exporter (#33)
* upgrade zktrie * noisy log * fix typo * add chunk mode * add chunk mode to binary tool * disable key cache * fix unwrap * build once * clippy * add tracker * add tracker * fix some order * fix clippy * add metrics exporter * some adjustment * some adjustment * typo * adjust range based on super2 * fix * fix * fix * update Cargo.lock * fix clippy * add new traces * remove aggregator unit test * fix * suppress measure log * refactor
1 parent b105f96 commit b7c15f4

File tree

17 files changed

+2081
-296
lines changed

17 files changed

+2081
-296
lines changed

Cargo.lock

+557-160
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ url = { version = "2.5", optional = true }
3838
# optional dependencies
3939
csv = { version = "1.3", optional = true }
4040
ctor = { version = "0.2", optional = true }
41+
hyper = { version = "1.4", features = ["server", "http1"], optional = true }
42+
hyper-util = { version = "0.1", features = ["tokio"], optional = true }
43+
http-body-util = { version = "0.1", optional = true }
44+
once_cell = { version = "1.19", optional = true }
45+
prometheus-client = { version = "0.22", optional = true }
4146
pprof = { version = "0.13", features = ["flamegraph"], optional = true }
4247
tracing = { version = "0.1", optional = true }
4348
tracing-subscriber = { version = "0.3", features = ["env-filter"], optional = true }
@@ -61,6 +66,8 @@ features = [
6166
]
6267

6368
[dev-dependencies]
69+
rand = "0.8"
70+
reqwest = "0.12"
6471
serde = { version = "1.0" }
6572
serde_json = { version = "1.0" }
6673

@@ -93,6 +100,7 @@ profiling = ["pprof"]
93100
debug-account = ["csv", "revm/serde"]
94101
debug-storage = ["csv", "revm/serde"]
95102
dev = ["ctor", "tracing", "tracing-subscriber"]
103+
metrics = ["hyper", "hyper-util", "http-body-util", "once_cell", "prometheus-client", "tokio", "tokio/macros", "tokio/signal"]
96104

97105
# sp1 related
98106
sp1 = []

0 commit comments

Comments
 (0)