mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Implement custom OpenTelemetry sampler to filter uninstrumented traces (#8647)
Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -23,7 +23,6 @@ futures = { workspace = true }
|
||||
health_metrics = { workspace = true }
|
||||
hex = { workspace = true }
|
||||
lighthouse_network = { workspace = true }
|
||||
lighthouse_tracing = { workspace = true }
|
||||
lighthouse_version = { workspace = true }
|
||||
logging = { workspace = true }
|
||||
lru = { workspace = true }
|
||||
|
||||
@@ -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)
|
||||
)]
|
||||
|
||||
@@ -19,7 +19,6 @@ use eth2::{
|
||||
use execution_layer::{ProvenancedPayload, SubmitBlindedBlockResponse};
|
||||
use futures::TryFutureExt;
|
||||
use lighthouse_network::PubsubMessage;
|
||||
use lighthouse_tracing::SPAN_PUBLISH_BLOCK;
|
||||
use network::NetworkMessage;
|
||||
use rand::prelude::SliceRandom;
|
||||
use slot_clock::SlotClock;
|
||||
@@ -79,7 +78,7 @@ impl<T: BeaconChainTypes> ProvenancedBlock<T, Arc<SignedBeaconBlock<T::EthSpec>>
|
||||
/// Handles a request from the HTTP API for full blocks.
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
#[instrument(
|
||||
name = SPAN_PUBLISH_BLOCK,
|
||||
name = "lh_publish_block",
|
||||
level = "info",
|
||||
skip_all,
|
||||
fields(block_root = field::Empty, ?validation_level, block_slot = field::Empty, provenance = field::Empty)
|
||||
|
||||
Reference in New Issue
Block a user