Implement custom OpenTelemetry sampler to filter uninstrumented traces (#8647)

Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
Jimmy Chen
2026-01-22 16:11:26 +11:00
committed by GitHub
parent 21cabba1a2
commit 7f065009a7
24 changed files with 139 additions and 157 deletions

View File

@@ -12,7 +12,6 @@ use beacon_chain::{
};
use eth2::beacon_response::ForkVersionedResponse;
use eth2::types::{self as api_types, ProduceBlockV3Metadata, SkipRandaoVerification};
use lighthouse_tracing::{SPAN_PRODUCE_BLOCK_V2, SPAN_PRODUCE_BLOCK_V3};
use ssz::Encode;
use std::sync::Arc;
use tracing::instrument;
@@ -45,7 +44,7 @@ pub fn get_randao_verification(
}
#[instrument(
name = SPAN_PRODUCE_BLOCK_V3,
name = "lh_produce_block_v3",
skip_all,
fields(%slot)
)]
@@ -169,7 +168,7 @@ pub async fn produce_blinded_block_v2<T: BeaconChainTypes>(
}
#[instrument(
name = SPAN_PRODUCE_BLOCK_V2,
name = "lh_produce_block_v2",
skip_all,
fields(%slot)
)]