fix(op-reth): add jemalloc feature to optimism-cli for version (#11543)

This commit is contained in:
Dan Cline
2024-10-07 12:41:22 -04:00
committed by GitHub
parent 9a732f6b78
commit a6b564e054
4 changed files with 15 additions and 1 deletions

View File

@ -27,6 +27,9 @@ reth-node-core.workspace = true
reth-optimism-node.workspace = true
reth-primitives.workspace = true
# so jemalloc metrics can be included
reth-node-metrics.workspace = true
## optimism
reth-optimism-primitives.workspace = true
reth-optimism-chainspec.workspace = true
@ -82,3 +85,9 @@ asm-keccak = [
"reth-optimism-node/asm-keccak",
"reth-primitives/asm-keccak",
]
# Jemalloc feature for vergen to generate correct env vars
jemalloc = [
"reth-node-core/jemalloc",
"reth-node-metrics/jemalloc"
]

View File

@ -51,6 +51,10 @@ use reth_optimism_node::OptimismNode;
use reth_tracing::FileWorkerGuard;
use tracing::info;
// This allows us to manually enable node metrics features, required for proper jemalloc metric
// reporting
use reth_node_metrics as _;
/// The main op-reth cli interface.
///
/// This is the entrypoint to the executable.