refactor(dynamic_routing): add info logs to log the grpc request and response (#6962)

This commit is contained in:
Chethan Rao
2025-01-16 15:57:56 +05:30
committed by GitHub
parent 343465165b
commit 72904842ed
5 changed files with 90 additions and 43 deletions

View File

@ -37,6 +37,8 @@ use rand::{
distributions::{self, Distribution},
SeedableRng,
};
#[cfg(all(feature = "v1", feature = "dynamic_routing"))]
use router_env::{instrument, tracing};
use rustc_hash::FxHashMap;
use storage_impl::redis::cache::{CacheKey, CGRAPH_CACHE, ROUTING_CACHE};
@ -1281,6 +1283,7 @@ pub fn make_dsl_input_for_surcharge(
/// success based dynamic routing
#[cfg(all(feature = "v1", feature = "dynamic_routing"))]
#[instrument(skip_all)]
pub async fn perform_success_based_routing(
state: &SessionState,
routable_connectors: Vec<api_routing::RoutableConnectorChoice>,