mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 14:07:18 +08:00 
			
		
		
		
	feat(metrics): add histogram and update opentelemetry dependencies (#32)
This commit is contained in:
		@ -75,7 +75,7 @@ impl Feature<api::Authorize, types::PaymentsRequestData>
 | 
			
		||||
            )
 | 
			
		||||
            .await;
 | 
			
		||||
 | 
			
		||||
        metrics::PAYMENT_COUNT.add(1, &[]); // Metrics
 | 
			
		||||
        metrics::PAYMENT_COUNT.add(&metrics::CONTEXT, 1, &[]); // Metrics
 | 
			
		||||
 | 
			
		||||
        (resp, payment_data)
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -212,7 +212,7 @@ where
 | 
			
		||||
        payment_attempt: &storage::PaymentAttempt,
 | 
			
		||||
    ) -> CustomResult<(), errors::ApiErrorResponse> {
 | 
			
		||||
        if helpers::check_if_operation_confirm(self) {
 | 
			
		||||
            metrics::TASKS_ADDED_COUNT.add(1, &[]); // Metrics
 | 
			
		||||
            metrics::TASKS_ADDED_COUNT.add(&metrics::CONTEXT, 1, &[]); // Metrics
 | 
			
		||||
 | 
			
		||||
            let schedule_time = payment_sync::get_sync_process_schedule_time(
 | 
			
		||||
                &payment_attempt.connector,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user