refactor(grpc): send x-tenant-id and x-request-id in grpc headers (#6904)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Chethan Rao
2024-12-22 23:10:03 +05:30
committed by GitHub
parent 24401bc16f
commit dc0a92dc10
8 changed files with 104 additions and 8 deletions

View File

@ -719,6 +719,7 @@ pub async fn push_metrics_with_update_window_for_success_based_routing(
success_based_routing_configs.clone(),
success_based_routing_config_params.clone(),
routable_connectors.clone(),
state.get_grpc_headers(),
)
.await
.change_context(errors::ApiErrorResponse::InternalServerError)
@ -855,6 +856,7 @@ pub async fn push_metrics_with_update_window_for_success_based_routing(
},
payment_status_attribute == common_enums::AttemptStatus::Charged,
)],
state.get_grpc_headers(),
)
.await
.change_context(errors::ApiErrorResponse::InternalServerError)