@@ -450,7 +450,10 @@ impl StacksClient {
450
450
"last_sortition" => %last_sortition,
451
451
) ;
452
452
let path = self . tenure_forking_info_path ( chosen_parent, last_sortition) ;
453
- let timer = crate :: monitoring:: new_rpc_call_timer ( & path, & self . http_origin ) ;
453
+ let timer = crate :: monitoring:: new_rpc_call_timer (
454
+ "/v3/tenures/fork_info/:start/:stop" ,
455
+ & self . http_origin ,
456
+ ) ;
454
457
let send_request = || {
455
458
self . stacks_node_client
456
459
. get ( & path)
@@ -491,7 +494,8 @@ impl StacksClient {
491
494
pub fn get_sortition ( & self , ch : & ConsensusHash ) -> Result < SortitionInfo , ClientError > {
492
495
debug ! ( "stacks_node_client: Getting sortition with consensus hash {ch}..." ) ;
493
496
let path = format ! ( "{}/consensus/{}" , self . sortition_info_path( ) , ch. to_hex( ) ) ;
494
- let timer = crate :: monitoring:: new_rpc_call_timer ( & path, & self . http_origin ) ;
497
+ let timer_label = format ! ( "{}/consensus/:consensus_hash" , self . sortition_info_path( ) ) ;
498
+ let timer = crate :: monitoring:: new_rpc_call_timer ( & timer_label, & self . http_origin ) ;
495
499
let send_request = || {
496
500
self . stacks_node_client . get ( & path) . send ( ) . map_err ( |e| {
497
501
warn ! ( "Signer failed to request sortition" ; "consensus_hash" => %ch, "err" => ?e) ;
@@ -561,7 +565,7 @@ impl StacksClient {
561
565
) -> Result < Option < Vec < NakamotoSignerEntry > > , ClientError > {
562
566
debug ! ( "stacks_node_client: Getting reward set signers for reward cycle {reward_cycle}..." ) ;
563
567
let timer = crate :: monitoring:: new_rpc_call_timer (
564
- & self . reward_set_path ( reward_cycle) ,
568
+ & format ! ( "{}/v3/stacker_set/: reward_cycle" , self . http_origin ) ,
565
569
& self . http_origin ,
566
570
) ;
567
571
let send_request = || {
@@ -644,8 +648,8 @@ impl StacksClient {
644
648
address : & StacksAddress ,
645
649
) -> Result < AccountEntryResponse , ClientError > {
646
650
debug ! ( "stacks_node_client: Getting account info..." ) ;
647
- let timer =
648
- crate :: monitoring:: new_rpc_call_timer ( & self . accounts_path ( address ) , & self . http_origin ) ;
651
+ let timer_label = format ! ( "{}/v2/accounts/:stacks_address" , self . http_origin ) ;
652
+ let timer = crate :: monitoring:: new_rpc_call_timer ( & timer_label , & self . http_origin ) ;
649
653
let send_request = || {
650
654
self . stacks_node_client
651
655
. get ( self . accounts_path ( address) )
@@ -797,7 +801,11 @@ impl StacksClient {
797
801
let body =
798
802
json ! ( { "sender" : self . stacks_address. to_string( ) , "arguments" : args} ) . to_string ( ) ;
799
803
let path = self . read_only_path ( contract_addr, contract_name, function_name) ;
800
- let timer = crate :: monitoring:: new_rpc_call_timer ( & path, & self . http_origin ) ;
804
+ let timer_label = format ! (
805
+ "{}/v2/contracts/call-read/:principal/{contract_name}/{function_name}" ,
806
+ self . http_origin
807
+ ) ;
808
+ let timer = crate :: monitoring:: new_rpc_call_timer ( & timer_label, & self . http_origin ) ;
801
809
let response = self
802
810
. stacks_node_client
803
811
. post ( path)
0 commit comments