File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
beacon_node/lighthouse_tracing/src Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ build-release-tarballs:
143143# test vectors.
144144test-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.
281281lint-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
285285lint-full :
Original file line number Diff line number Diff line change 11use tracing:: Subscriber ;
22
3+ use std:: collections:: HashSet ;
4+ use tracing:: span:: Id ;
5+ use tracing_subscriber:: Layer ;
6+
37/// DA checker spans
48pub 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" ;
2731pub 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.
3036pub 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
5860pub struct AllowedRootSpanLayer < L > {
5961 inner : L ,
You can’t perform that action at this time.
0 commit comments