additional tracing span tweaks
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
819e35f81f
commit
fc1170e12a
11 changed files with 47 additions and 33 deletions
|
@ -16,7 +16,7 @@ use super::check_room_id;
|
|||
|
||||
#[implement(super::Service)]
|
||||
#[tracing::instrument(
|
||||
level = "warn",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(%origin),
|
||||
)]
|
||||
|
|
|
@ -14,7 +14,7 @@ use crate::rooms::short::ShortStateKey;
|
|||
/// on the events
|
||||
#[implement(super::Service)]
|
||||
#[tracing::instrument(
|
||||
level = "warn",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(%origin),
|
||||
)]
|
||||
|
|
|
@ -41,7 +41,7 @@ use crate::rooms::timeline::RawPduId;
|
|||
#[implement(super::Service)]
|
||||
#[tracing::instrument(
|
||||
name = "pdu",
|
||||
level = "warn",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(%room_id, %event_id),
|
||||
)]
|
||||
|
|
|
@ -14,7 +14,7 @@ use ruma::{CanonicalJsonValue, EventId, OwnedEventId, RoomId, ServerName};
|
|||
#[allow(clippy::too_many_arguments)]
|
||||
#[tracing::instrument(
|
||||
name = "prev",
|
||||
level = "warn",
|
||||
level = "debug",
|
||||
skip_all,
|
||||
fields(%prev_id),
|
||||
)]
|
||||
|
|
|
@ -18,7 +18,7 @@ use ruma::{
|
|||
use crate::rooms::state_compressor::CompressedStateEvent;
|
||||
|
||||
#[implement(super::Service)]
|
||||
#[tracing::instrument(skip_all, name = "resolve")]
|
||||
#[tracing::instrument(name = "resolve", level = "debug", skip_all)]
|
||||
pub async fn resolve_state(
|
||||
&self,
|
||||
room_id: &RoomId,
|
||||
|
|
|
@ -16,7 +16,7 @@ use ruma::{state_res::StateMap, OwnedEventId, RoomId, RoomVersionId};
|
|||
// TODO: if we know the prev_events of the incoming event we can avoid the
|
||||
#[implement(super::Service)]
|
||||
// request and build the state from a known point and resolve if > 1 prev_event
|
||||
#[tracing::instrument(skip_all, name = "state")]
|
||||
#[tracing::instrument(name = "state", level = "debug", skip_all)]
|
||||
pub(super) async fn state_at_incoming_degree_one(
|
||||
&self,
|
||||
incoming_pdu: &Arc<PduEvent>,
|
||||
|
@ -66,7 +66,7 @@ pub(super) async fn state_at_incoming_degree_one(
|
|||
}
|
||||
|
||||
#[implement(super::Service)]
|
||||
#[tracing::instrument(skip_all, name = "state")]
|
||||
#[tracing::instrument(name = "state", level = "debug", skip_all)]
|
||||
pub(super) async fn state_at_incoming_resolved(
|
||||
&self,
|
||||
incoming_pdu: &Arc<PduEvent>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue