From 7b641ae00d032ebcebef55f267a5f7b5352668eb Mon Sep 17 00:00:00 2001 From: Ronald Holshausen Date: Tue, 13 Aug 2024 10:53:07 +1000 Subject: [PATCH] chore: cleanup trace level span --- drivers/rust/driver/src/catalogue_manager.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rust/driver/src/catalogue_manager.rs b/drivers/rust/driver/src/catalogue_manager.rs index dbfc711d..e9f425df 100644 --- a/drivers/rust/driver/src/catalogue_manager.rs +++ b/drivers/rust/driver/src/catalogue_manager.rs @@ -10,7 +10,7 @@ use maplit::hashset; use pact_models::content_types::ContentType; use regex::Regex; use serde::{Deserialize, Serialize}; -use tracing::{debug, error, trace}; +use tracing::{debug, error, instrument, trace}; use crate::content::{ContentGenerator, ContentMatcher}; use crate::plugin_models::PactPluginManifest; @@ -195,6 +195,7 @@ pub fn remove_plugin_entries(name: &str) { } /// Find a content matcher in the global catalogue for the provided content type +#[instrument(level = "trace", skip(content_type))] pub fn find_content_matcher>(content_type: CT) -> Option { let content_type_str = content_type.into(); debug!("Looking for a content matcher for {}", content_type_str);