Skip to content

Commit

Permalink
fix: remove x-request-id from headers before connector calls (#2182)
Browse files Browse the repository at this point in the history
  • Loading branch information
nitesh-balla authored Sep 18, 2023
1 parent 5643ecf commit 680505f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/router/src/services/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,17 +453,7 @@ pub async fn send_request(
request.certificate_key,
)?;

let mut headers_with_request_id = request.headers;
headers_with_request_id.insert((
crate::headers::X_REQUEST_ID.to_string(),
state
.api_client
.get_request_id()
.ok_or(errors::ApiClientError::InternalServerErrorReceived)
.into_report()?
.into(),
));
let headers = headers_with_request_id.construct_header_map()?;
let headers = request.headers.construct_header_map()?;
let metrics_tag = router_env::opentelemetry::KeyValue {
key: consts::METRICS_HOST_TAG_NAME.into(),
value: url.host_str().unwrap_or_default().to_string().into(),
Expand Down

0 comments on commit 680505f

Please sign in to comment.