mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(metrics): add response metrics (#1263)
This commit is contained in:
		| @ -25,13 +25,21 @@ where | ||||
|     Q: Serialize + std::fmt::Debug + 'a, | ||||
|     S: TryFrom<Q> + Serialize, | ||||
|     E: Serialize + error_stack::Context + actix_web::ResponseError + Clone, | ||||
|     U: auth::AuthInfo, | ||||
|     error_stack::Report<E>: services::EmbedError, | ||||
|     errors::ApiErrorResponse: ErrorSwitch<E>, | ||||
|     T: std::fmt::Debug, | ||||
|     A: AppStateInfo, | ||||
| { | ||||
|     let resp: common_utils::errors::CustomResult<_, E> = | ||||
|         api::server_wrap_util(state, request, payload, func, api_authentication).await; | ||||
|     let resp: common_utils::errors::CustomResult<_, E> = api::server_wrap_util( | ||||
|         &router_env::Flow::CompatibilityLayerRequest, | ||||
|         state, | ||||
|         request, | ||||
|         payload, | ||||
|         func, | ||||
|         api_authentication, | ||||
|     ) | ||||
|     .await; | ||||
|     match resp { | ||||
|         Ok(api::ApplicationResponse::Json(router_resp)) => { | ||||
|             let pg_resp = S::try_from(router_resp); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Nishant Joshi
					Nishant Joshi