Skip to content

Commit c8c1b60

Browse files
committed
chore: Fix doc tests
1 parent c5efdfa commit c8c1b60

File tree

2 files changed

+4
-6
lines changed
  • crates
    • stackable-operator/src
    • stackable-telemetry/src/tracing

2 files changed

+4
-6
lines changed

crates/stackable-operator/src/cli.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ pub enum Command<Run: Args = ProductOperatorRun> {
165165
/// ```rust
166166
/// # use stackable_operator::cli::{Command, ProductOperatorRun, ProductConfigPath};
167167
/// use clap::Parser;
168-
/// use stackable_operator::{
169-
/// cli::TelemetryArguments,
170-
/// namespace::WatchNamespace,
171-
/// };
168+
/// use stackable_operator::namespace::WatchNamespace;
169+
/// use stackable_telemetry::tracing::TelemetryOptions;
172170
///
173171
/// #[derive(clap::Parser, Debug, PartialEq, Eq)]
174172
/// struct Run {
@@ -184,7 +182,7 @@ pub enum Command<Run: Args = ProductOperatorRun> {
184182
/// common: ProductOperatorRun {
185183
/// product_config: ProductConfigPath::from("bar".as_ref()),
186184
/// watch_namespace: WatchNamespace::One("foobar".to_string()),
187-
/// telemetry_arguments: TelemetryArguments::default(),
185+
/// telemetry_arguments: TelemetryOptions::default(),
188186
/// cluster_info_opts: Default::default(),
189187
/// },
190188
/// }));

crates/stackable-telemetry/src/tracing/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ pub enum Error {
107107
/// rolling_logs_period: None,
108108
/// otlp_traces: true,
109109
/// otlp_logs: true,
110-
/// }
110+
/// };
111111
///
112112
/// let _tracing_guard = Tracing::pre_configured("test", options).init()?;
113113
///

0 commit comments

Comments
 (0)