From 1c9f7cb4ea3387518540f1cd6bb04ba012ef86e6 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 11 Apr 2024 07:46:30 +0100 Subject: [PATCH] fix: clean up instrumentation --- src/server/actors/repo/branch.rs | 2 +- src/server/forge/forgejo/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/actors/repo/branch.rs b/src/server/actors/repo/branch.rs index d0e0b67d..66e7b199 100644 --- a/src/server/actors/repo/branch.rs +++ b/src/server/actors/repo/branch.rs @@ -7,7 +7,7 @@ use crate::server::{config, forge}; use super::{RepoActor, StartMonitoring, StartRepo}; -#[tracing::instrument(fields(forge_name = %repo_details.forge.name, repo_name = %repo_details.name))] +#[tracing::instrument(fields(forge_name = %repo_details.forge.name, repo_name = %repo_details.name), skip_all)] pub async fn validate_positions( repo_details: config::RepoDetails, config: config::RepoConfig, diff --git a/src/server/forge/forgejo/mod.rs b/src/server/forge/forgejo/mod.rs index 80137474..4d4a002e 100644 --- a/src/server/forge/forgejo/mod.rs +++ b/src/server/forge/forgejo/mod.rs @@ -28,7 +28,7 @@ pub async fn get_commit_histories( Ok(histories) } -#[tracing::instrument(fields(%branch_name))] +#[tracing::instrument(fields(%branch_name),skip_all)] async fn get_commit_history( repo_details: &crate::server::config::RepoDetails, branch_name: &BranchName,