Skip to content

Commit 17ade7d

Browse files
committed
Wrap all output in a containerdebug span
1 parent 487a498 commit 17ade7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ fn main() {
4242
APP_NAME,
4343
opts.tracing_target,
4444
);
45+
46+
// Wrap *all* output in a span, to separate it from main app output.
47+
let _span = tracing::error_span!("containerdebug").entered();
48+
4549
stackable_operator::utils::print_startup_string(
4650
crate_description!(),
4751
crate_version!(),
@@ -62,7 +66,6 @@ fn main() {
6266
let system_information = SystemInformation::collect();
6367

6468
let serialized = serde_json::to_string_pretty(&system_information).unwrap();
65-
// println!("{serialized}");
6669
if let Some(output_path) = &opts.output {
6770
std::fs::write(output_path, &serialized).unwrap();
6871
}

0 commit comments

Comments
 (0)