Skip to content

Commit a557e43

Browse files
committed
test: update tracer metadata test for local root span id
1 parent 5807f64 commit a557e43

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

libdd-library-config/src/tracer_metadata.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,11 @@ mod tests {
259259
#[test]
260260
fn threadlocal_attrs_present_with_correct_values() {
261261
let ctx = TracerMetadata {
262-
threadlocal_attribute_keys: vec![
262+
threadlocal_attribute_keys: Some(vec![
263263
"span.id".to_owned(),
264264
"trace.id".to_owned(),
265265
"custom.key".to_owned(),
266-
],
266+
]),
267267
..Default::default()
268268
}
269269
.to_otel_process_ctx();
@@ -291,6 +291,14 @@ mod tests {
291291
other => panic!("expected StringValue, got {:?}", other),
292292
})
293293
.collect();
294-
assert_eq!(keys, ["span.id", "trace.id", "custom.key"]);
294+
assert_eq!(
295+
keys,
296+
[
297+
"datadog.local_root_span_id",
298+
"span.id",
299+
"trace.id",
300+
"custom.key"
301+
]
302+
);
295303
}
296304
}

0 commit comments

Comments
 (0)