From 1a28cdcf9b4abfe0909e051d13fd775668975199 Mon Sep 17 00:00:00 2001 From: Spencer Judge Date: Tue, 30 Jul 2024 09:21:57 -0700 Subject: [PATCH] Add warning on unparseable namespaces --- client/src/raw.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/raw.rs b/client/src/raw.rs index d513c69bf..a78b9de9e 100644 --- a/client/src/raw.rs +++ b/client/src/raw.rs @@ -482,9 +482,10 @@ macro_rules! namespaced_request { // Attach namespace header $req.metadata_mut().insert( TEMPORAL_NAMESPACE_HEADER_KEY, - ns_str - .parse() - .unwrap_or_else(|_| AsciiMetadataValue::from_static("")), + ns_str.parse().unwrap_or_else(|e| { + warn!("Unable to parse namespace for header: {e:?}"); + AsciiMetadataValue::from_static("") + }), ); // Init metric labels AttachMetricLabels::namespace(ns_str)