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
8 changes: 2 additions & 6 deletions datadog-ipc/src/shm_stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,7 @@ impl ShmSpanConcentrator {
top_level_hits,
span_kind: read_str!(f.span_kind),
peer_tags,
is_trace_root: if f.is_trace_root {
pb::Trilean::True.into()
} else {
pb::Trilean::False.into()
},
is_trace_root: f.is_trace_root.into(),
http_method: read_str!(f.http_method),
http_endpoint: read_str!(f.http_endpoint),
grpc_status_code: f
Expand Down Expand Up @@ -856,7 +852,7 @@ mod tests {
service_source: "",
http_status_code: 200,
is_synthetics_request: false,
is_trace_root: true,
is_trace_root: pb::Trilean::True,
grpc_status_code: None,
},
peer_tags: &[],
Expand Down
1 change: 1 addition & 0 deletions libdd-data-pipeline/src/trace_exporter/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ pub(crate) fn start_stats_computation<
std::time::SystemTime::now(),
span_kinds,
peer_tags,
None,
#[cfg(feature = "stats-obfuscation")]
Some(client_side_stats.obfuscation_config.clone()),
)));
Expand Down
2 changes: 2 additions & 0 deletions libdd-trace-protobuf/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ fn generate_protobuf() {
"#[serde(rename = \"srv_src\")]",
);

config.type_attribute("Trilean", "#[derive(Deserialize, Serialize)]");

// idx module type attributes
config.type_attribute("pb.idx.AnyValue", "#[derive(Deserialize, Serialize)]");
config.type_attribute(
Expand Down
1 change: 1 addition & 0 deletions libdd-trace-protobuf/src/pb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ pub struct ClientGroupedStats {
>,
}
/// Trilean is an expanded boolean type that is meant to differentiate between being unset and false.
#[derive(Deserialize, Serialize)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Trilean {
Expand Down
1 change: 1 addition & 0 deletions libdd-trace-stats/benches/span_concentrator_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
now,
vec![],
vec!["db_name".into(), "bucket_s3".into()],
None,
#[cfg(feature = "stats-obfuscation")]
None,
);
Expand Down
Loading