@@ -16,6 +16,7 @@ use super::prelude::*;
16
16
) ,
17
17
security( ( "api_key" = [ ] ) )
18
18
) ) ]
19
+ #[ tracing:: instrument( ret, skip( client) , level = "info" , fields( method = "GET" ) ) ]
19
20
pub async fn get_disks_count ( Extension ( client) : Extension < HttpBobClient > ) -> Json < DiskCount > {
20
21
tracing:: info!( "get /disks/count : {:?}" , client) ;
21
22
@@ -83,6 +84,7 @@ pub async fn get_disks_count(Extension(client): Extension<HttpBobClient>) -> Jso
83
84
) ,
84
85
security( ( "api_key" = [ ] ) )
85
86
) ) ]
87
+ #[ tracing:: instrument( ret, skip( client) , level = "info" , fields( method = "GET" ) ) ]
86
88
pub async fn get_nodes_count ( Extension ( client) : Extension < HttpBobClient > ) -> Json < NodeCount > {
87
89
tracing:: info!( "get /nodes/count : {:?}" , client) ;
88
90
@@ -130,6 +132,7 @@ pub async fn get_nodes_count(Extension(client): Extension<HttpBobClient>) -> Jso
130
132
) ,
131
133
security( ( "api_key" = [ ] ) )
132
134
) ) ]
135
+ #[ tracing:: instrument( ret, skip( client) , level = "info" , fields( method = "GET" ) ) ]
133
136
pub async fn get_rps ( Extension ( client) : Extension < HttpBobClient > ) -> Json < RPS > {
134
137
tracing:: info!( "get /nodes/rps : {:?}" , client) ;
135
138
@@ -168,6 +171,7 @@ pub async fn get_rps(Extension(client): Extension<HttpBobClient>) -> Json<RPS> {
168
171
) ,
169
172
security( ( "api_key" = [ ] ) )
170
173
) ) ]
174
+ #[ tracing:: instrument( ret, skip( client) , level = "info" , fields( method = "GET" ) ) ]
171
175
pub async fn get_space ( Extension ( client) : Extension < HttpBobClient > ) -> Json < SpaceInfo > {
172
176
tracing:: info!( "get /space : {:?}" , client) ;
173
177
let mut spaces: FuturesUnordered < _ > = client
0 commit comments