Skip to content
Merged
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Changed

- All output is now wrapped in a "containerdebug" span ([#18]).

[#18]: https://github.com/stackabletech/containerdebug/pull/18

## [0.1.0] - 2024-12-09

### Added
Expand Down
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ fn main() {
APP_NAME,
opts.tracing_target,
);

// Wrap *all* output in a span, to separate it from main app output.
let _span = tracing::error_span!("containerdebug").entered();

stackable_operator::utils::print_startup_string(
crate_description!(),
crate_version!(),
Expand All @@ -62,7 +66,6 @@ fn main() {
let system_information = SystemInformation::collect();

let serialized = serde_json::to_string_pretty(&system_information).unwrap();
// println!("{serialized}");
if let Some(output_path) = &opts.output {
std::fs::write(output_path, &serialized).unwrap();
}
Expand Down
Loading