Skip to content

Commit 433010d

Browse files
committed
Revert Makefile changes and re-arrange imports
1 parent 7762c16 commit 433010d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ build-release-tarballs:
143143
# test vectors.
144144
test-release:
145145
cargo test --workspace --release --features "$(TEST_FEATURES)" \
146-
--exclude ef_tests --exclude beacon_chain --exclude slasher --exclude network
146+
--exclude ef_tests --exclude beacon_chain --exclude slasher --exclude network \
147147
--exclude http_api
148148

149149
# Runs the full workspace tests in **release**, without downloading any additional
@@ -279,7 +279,7 @@ lint:
279279

280280
# Lints the code using Clippy and automatically fix some simple compiler warnings.
281281
lint-fix:
282-
EXTRA_CLIPPY_OPTS="--fix --allow-staged --allow-dirty" $(MAKE) lint
282+
EXTRA_CLIPPY_OPTS="--fix --allow-staged --allow-dirty" $(MAKE) lint-full
283283

284284
# Also run the lints on the optimized-only tests
285285
lint-full:

beacon_node/lighthouse_tracing/src/lib.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
use tracing::Subscriber;
22

3+
use std::collections::HashSet;
4+
use tracing::span::Id;
5+
use tracing_subscriber::Layer;
6+
37
/// DA checker spans
48
pub const SPAN_PENDING_COMPONENTS: &str = "pending_components";
59
/// Gossip methods root spans
@@ -26,7 +30,9 @@ pub const SPAN_HANDLE_LIGHT_CLIENT_OPTIMISTIC_UPDATE: &str =
2630
"handle_light_client_optimistic_update";
2731
pub const SPAN_HANDLE_LIGHT_CLIENT_FINALITY_UPDATE: &str = "handle_light_client_finality_update";
2832

29-
// All allowed root span names
33+
// Only allowed root spans and its descendants are exported to the tracing backend, so that we don't
34+
// get a lot of noise from code paths that are not instrumented.
35+
// When a new root span is added, it should be added to this list.
3036
pub const LH_BN_ROOT_SPAN_NAMES: &[&str] = &[
3137
SPAN_PENDING_COMPONENTS,
3238
SPAN_PROCESS_GOSSIP_DATA_COLUMN,
@@ -50,10 +56,6 @@ pub const LH_BN_ROOT_SPAN_NAMES: &[&str] = &[
5056
SPAN_HANDLE_LIGHT_CLIENT_FINALITY_UPDATE,
5157
];
5258

53-
use std::collections::HashSet;
54-
use tracing::span::Id;
55-
use tracing_subscriber::Layer;
56-
5759
/// A filtering layer that wraps another layer and only forwards spans from allowed root spans and their descendants
5860
pub struct AllowedRootSpanLayer<L> {
5961
inner: L,

0 commit comments

Comments
 (0)