We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b74faf commit 8408c6aCopy full SHA for 8408c6a
src/main.rs
@@ -27,6 +27,9 @@ struct Opts {
27
/// Write collected information to OUTPUT as JSON
28
#[clap(long, short = 'o')]
29
output: Option<PathBuf>,
30
+
31
+ #[clap(flatten)]
32
+ pub telemetry_arguments: TelemetryOptions,
33
}
34
35
mod built_info {
@@ -36,7 +39,9 @@ mod built_info {
36
39
fn main() {
37
40
let opts = Opts::parse();
38
41
- let _ = Tracing::pre_configured(APP_NAME, TelemetryOptions::default()).init();
42
+ let _trace_guard = Tracing::pre_configured(APP_NAME, opts.telemetry_arguments)
43
+ .init()
44
+ .unwrap();
45
46
// Wrap *all* output in a span, to separate it from main app output.
47
let _span = tracing::error_span!("containerdebug").entered();
0 commit comments