@@ -78,7 +78,7 @@ static DESCRIBE: LazyLock<()> = LazyLock::new(|| {
7878} ) ; 
7979
8080/// Get or register a counter for calls to a specific service and method. 
81- pub ( crate )   fn  calls ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
81+ fn  calls ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
8282    let  _ = & DESCRIBE ; 
8383    counter ! ( 
8484        ROUTER_CALLS , 
@@ -95,7 +95,7 @@ pub(crate) fn record_call(service_name: &'static str, method: &str) {
9595} 
9696
9797/// Get or register a counter for errors from a specific service and method. 
98- pub ( crate )   fn  errors ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
98+ fn  errors ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
9999    let  _ = & DESCRIBE ; 
100100    counter ! ( 
101101        ROUTER_ERRORS , 
@@ -105,13 +105,13 @@ pub(crate) fn errors(service_name: &'static str, method: &str) -> Counter {
105105} 
106106
107107/// Record an error from a specific service and method. 
108- pub ( crate )   fn  record_execution_error ( service_name :  & ' static  str ,  method :  & str )  { 
108+ fn  record_execution_error ( service_name :  & ' static  str ,  method :  & str )  { 
109109    let  counter = errors ( service_name,  method) ; 
110110    counter. increment ( 1 ) ; 
111111} 
112112
113113/// Get or register a counter for successes from a specific service and method. 
114- pub ( crate )   fn  successes ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
114+ fn  successes ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
115115    let  _ = & DESCRIBE ; 
116116    counter ! ( 
117117        ROUTER_SUCCESSES , 
@@ -121,7 +121,7 @@ pub(crate) fn successes(service_name: &'static str, method: &str) -> Counter {
121121} 
122122
123123/// Record a success from a specific service and method. 
124- pub ( crate )   fn  record_execution_success ( service_name :  & ' static  str ,  method :  & str )  { 
124+ fn  record_execution_success ( service_name :  & ' static  str ,  method :  & str )  { 
125125    let  counter = successes ( service_name,  method) ; 
126126    counter. increment ( 1 ) ; 
127127} 
@@ -137,7 +137,7 @@ pub(crate) fn record_execution(success: bool, service_name: &'static str, method
137137} 
138138
139139/// Get or register a counter for responses from a specific service and method. 
140- pub ( crate )   fn  responses ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
140+ fn  responses ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
141141    let  _ = & DESCRIBE ; 
142142    counter ! ( 
143143        ROUTER_RESPONSES , 
@@ -147,13 +147,13 @@ pub(crate) fn responses(service_name: &'static str, method: &str) -> Counter {
147147} 
148148
149149/// Record a response from a specific service and method. 
150- pub ( crate )   fn  record_response ( service_name :  & ' static  str ,  method :  & str )  { 
150+ fn  record_response ( service_name :  & ' static  str ,  method :  & str )  { 
151151    let  counter = responses ( service_name,  method) ; 
152152    counter. increment ( 1 ) ; 
153153} 
154154
155155/// Get or register a counter for omitted notification responses from a specific service and method. 
156- pub ( crate )   fn  response_omitted ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
156+ fn  response_omitted ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
157157    let  _ = & DESCRIBE ; 
158158    counter ! ( 
159159        ROUTER_NOTIFICATION_RESPONSE_OMITTED , 
@@ -163,7 +163,7 @@ pub(crate) fn response_omitted(service_name: &'static str, method: &str) -> Coun
163163} 
164164
165165/// Record an omitted notification response from a specific service and method. 
166- pub ( crate )   fn  record_response_omitted ( service_name :  & ' static  str ,  method :  & str )  { 
166+ fn  record_response_omitted ( service_name :  & ' static  str ,  method :  & str )  { 
167167    let  counter = response_omitted ( service_name,  method) ; 
168168    counter. increment ( 1 ) ; 
169169} 
@@ -179,8 +179,8 @@ pub(crate) fn record_output(response_sent: bool, service_name: &'static str, met
179179    decrement_active_calls ( service_name,  method) ; 
180180} 
181181
182- // Get or register a counter for parse errors. 
183- pub ( crate )   fn  parse_errors ( service_name :  & ' static  str )  -> Counter  { 
182+ ///  Get or register a counter for parse errors. 
183+ fn  parse_errors ( service_name :  & ' static  str )  -> Counter  { 
184184    let  _ = & DESCRIBE ; 
185185    counter ! ( ROUTER_PARSE_ERRORS ,  "service"  => service_name. to_string( ) ) 
186186} 
@@ -192,7 +192,7 @@ pub(crate) fn record_parse_error(service_name: &'static str) {
192192} 
193193
194194/// Get or register a counter for method not found errors. 
195- pub ( crate )   fn  method_not_found_errors ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
195+ fn  method_not_found_errors ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
196196    let  _ = & DESCRIBE ; 
197197    counter ! ( ROUTER_METHOD_NOT_FOUND ,  "service"  => service_name. to_string( ) ,  "method"  => method. to_string( ) ) 
198198} 
@@ -209,27 +209,27 @@ pub(crate) fn record_method_not_found(
209209} 
210210
211211/// Get or register a gauge for active calls to a specific service. 
212- pub ( crate )   fn  active_calls ( service_name :  & ' static  str ,  method :  & str )  -> Gauge  { 
212+ fn  active_calls ( service_name :  & ' static  str ,  method :  & str )  -> Gauge  { 
213213    let  _ = & DESCRIBE ; 
214214    gauge ! ( ACTIVE_CALLS ,  "service"  => service_name. to_string( ) ,  "method"  => method. to_string( ) ) 
215215} 
216216
217217/// Increment the active calls gauge for a specific service. 
218- pub ( crate )   fn  increment_active_calls ( service_name :  & ' static  str ,  method :  & str )  { 
218+ fn  increment_active_calls ( service_name :  & ' static  str ,  method :  & str )  { 
219219    let  _ = & DESCRIBE ; 
220220    let  gauge = active_calls ( service_name,  method) ; 
221221    gauge. increment ( 1 ) ; 
222222} 
223223
224224/// Decrement the active calls gauge for a specific service. 
225- pub ( crate )   fn  decrement_active_calls ( service_name :  & ' static  str ,  method :  & str )  { 
225+ fn  decrement_active_calls ( service_name :  & ' static  str ,  method :  & str )  { 
226226    let  _ = & DESCRIBE ; 
227227    let  gauge = active_calls ( service_name,  method) ; 
228228    gauge. decrement ( 1 ) ; 
229229} 
230230
231231/// Get or register a counter for completed calls to a specific service. 
232- pub ( crate )   fn  completed_calls ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
232+ fn  completed_calls ( service_name :  & ' static  str ,  method :  & str )  -> Counter  { 
233233    let  _ = & DESCRIBE ; 
234234    counter ! ( 
235235        COMPLETED_CALLS , 
@@ -239,7 +239,7 @@ pub(crate) fn completed_calls(service_name: &'static str, method: &str) -> Count
239239} 
240240
241241/// Record a completed call to a specific service and method. 
242- pub ( crate )   fn  record_completed_call ( service_name :  & ' static  str ,  method :  & str )  { 
242+ fn  record_completed_call ( service_name :  & ' static  str ,  method :  & str )  { 
243243    let  _ = & DESCRIBE ; 
244244    let  counter = completed_calls ( service_name,  method) ; 
245245    counter. increment ( 1 ) ; 
0 commit comments