Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions datadog-live-debugger-ffi/src/send_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub extern "C" fn ddog_create_exception_snapshot<'a>(
ddsource: Cow::Borrowed("dd_debugger"),
timestamp,
message: None,
process_tags: None,
debugger: DebuggerData::Snapshot(Snapshot {
captures: Some(Captures {
r#return: Some(Capture::default()),
Expand Down Expand Up @@ -161,6 +162,7 @@ pub extern "C" fn ddog_create_log_probe_snapshot<'a>(
service: CharSlice<'a>,
language: CharSlice<'a>,
timestamp: u64,
process_tags: CharSlice<'a>,
) -> Box<DebuggerPayload<'a>> {
Box::new(DebuggerPayload {
service: service.to_utf8_lossy(),
Expand All @@ -177,6 +179,11 @@ pub extern "C" fn ddog_create_log_probe_snapshot<'a>(
timestamp,
..Default::default()
}),
process_tags: if process_tags.is_empty() {
None
} else {
Some(process_tags.to_utf8_lossy())
},
})
}

Expand Down Expand Up @@ -425,6 +432,7 @@ pub extern "C" fn ddog_evaluation_error_snapshot<'a>(
evaluation_errors: *errors,
..Default::default()
}),
process_tags: None,
})
}

Expand Down Expand Up @@ -505,6 +513,7 @@ pub fn ddog_debugger_diagnostics_create_unboxed<'a>(
})
}),
debugger: DebuggerData::Diagnostics(diagnostics),
process_tags: None,
}
}

Expand Down
1 change: 1 addition & 0 deletions datadog-live-debugger/src/debugger_defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ pub struct DebuggerPayload<'a> {
pub timestamp: u64,
pub debugger: DebuggerData<'a>,
pub message: Option<Cow<'a, str>>,
pub process_tags: Option<Cow<'a, str>>,
}

#[derive(Debug, Serialize, Deserialize)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ mod tests {
details: None,
}),
message: None,
process_tags: None,
}
}

Expand Down
Loading