Skip to content

Commit 961844a

Browse files
committed
Remove response code
1 parent 2746704 commit 961844a

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

datadog-sidecar-ffi/src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -442,14 +442,9 @@ pub unsafe extern "C" fn ddog_sidecar_telemetry_addEndpoint(
442442
resource_name: CharSlice,
443443
request_body_type: *mut ffi::Vec<CharSlice>,
444444
response_body_type: *mut ffi::Vec<CharSlice>,
445-
response_code: i32,
446445
authentication: *mut ffi::Vec<ddtelemetry::data::Authentication>,
447446
metadata: CharSlice,
448447
) -> MaybeError {
449-
let mut response_code_vec = vec![];
450-
if response_code > -1 {
451-
response_code_vec.push(response_code);
452-
}
453448
let request_body_type = box_from_raw_opt(request_body_type);
454449
let response_body_type = box_from_raw_opt(response_body_type);
455450
let authentication = box_from_raw_opt(authentication);
@@ -463,7 +458,6 @@ pub unsafe extern "C" fn ddog_sidecar_telemetry_addEndpoint(
463458
resource_name: resource_name.to_utf8_lossy().into_owned(),
464459
request_body_type: request_body_type.map(|v| slice_of_char_slice_to_vec_of_string(&**v)),
465460
response_body_type: response_body_type.map(|v| slice_of_char_slice_to_vec_of_string(&**v)),
466-
response_code: Some(response_code_vec),
467461
// into_iter() is not implemented correctly for ffi::Vec, so we need to copy the elements
468462
authentication: authentication.map(|v| v.iter().map(|auth| auth.to_owned()).collect()),
469463
metadata: metadata.assume_utf8().to_string(),

ddtelemetry/src/data/payloads.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ pub struct Endpoint {
151151
#[serde(default)]
152152
pub response_body_type: Option<Vec<String>>,
153153
#[serde(default)]
154-
pub response_code: Option<Vec<i32>>,
155-
#[serde(default)]
156154
pub authentication: Option<Vec<Authentication>>,
157155
#[serde(default)]
158156
pub metadata: String,

0 commit comments

Comments
 (0)