misc tracing span tweaks

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-12-08 20:31:16 +00:00
commit aba88ccead
16 changed files with 96 additions and 24 deletions

View file

@ -176,7 +176,6 @@ impl Data {
}
}
#[tracing::instrument(skip(key), level = "debug")]
fn parse_servercurrentevent(key: &[u8], value: &[u8]) -> Result<(Destination, SendingEvent)> {
// Appservices start with a plus
Ok::<_, Error>(if key.starts_with(b"+") {

View file

@ -24,7 +24,7 @@ use crate::{
};
impl super::Service {
#[tracing::instrument(skip(self, client, request), name = "send")]
#[tracing::instrument(skip_all, level = "debug")]
pub async fn send<T>(&self, client: &Client, dest: &ServerName, request: T) -> Result<T::IncomingResponse>
where
T: OutgoingRequest + Send,

View file

@ -62,7 +62,7 @@ pub const PDU_LIMIT: usize = 50;
pub const EDU_LIMIT: usize = 100;
impl Service {
#[tracing::instrument(skip_all, name = "sender")]
#[tracing::instrument(skip_all, level = "debug")]
pub(super) async fn sender(&self) -> Result<()> {
let mut statuses: CurTransactionStatus = CurTransactionStatus::new();
let mut futures: SendingFutures<'_> = FuturesUnordered::new();