@@ -62,13 +62,11 @@ pub enum Error {
62
62
///
63
63
/// # Usage
64
64
///
65
- /// There are two different styles to configure individual subscribers: Using the sophisticated
66
- /// [`SettingsBuilder`] or the simplified tuple style for basic configuration. Currently, three
67
- /// different subscribers are supported: console output, OTLP log export, and OTLP trace export.
65
+ /// ## Tracing Guard
68
66
///
69
- /// The subscribers are active as long as the tracing guard returned by [`Tracing::init`] is in
70
- /// scope and not dropped. Dropping it results in subscribers being shut down, which can lead to
71
- /// loss of telemetry data when done before exiting the application. This is why it is important
67
+ /// The configured subscribers are active as long as the tracing guard returned by [`Tracing::init`]
68
+ /// is in scope and not dropped. Dropping it results in subscribers being shut down, which can lead
69
+ /// to loss of telemetry data when done before exiting the application. This is why it is important
72
70
/// to hold onto the guard as long as required.
73
71
///
74
72
/// <div class="warning">
@@ -178,26 +176,26 @@ pub enum Error {
178
176
/// .service_name("test")
179
177
/// .with_console_output(
180
178
/// Settings::builder()
181
- /// .with_environment_variable("TEST_CONSOLE ")
179
+ /// .with_environment_variable("CONSOLE_LOG ")
182
180
/// .with_default_level(LevelFilter::INFO)
183
181
/// .build()
184
182
/// )
185
183
/// .with_file_output(
186
184
/// Settings::builder()
187
- /// .with_environment_variable("TEST_FILE_LOG ")
185
+ /// .with_environment_variable("FILE_LOG ")
188
186
/// .with_default_level(LevelFilter::INFO)
189
- /// .file_log_settings_builder("/tmp/logs", "tracing-rs .log")
187
+ /// .file_log_settings_builder("/tmp/logs", "operator .log")
190
188
/// .build()
191
189
/// )
192
190
/// .with_otlp_log_exporter(otlp_log_flag.then(|| {
193
191
/// Settings::builder()
194
- /// .with_environment_variable("TEST_OTLP_LOG ")
192
+ /// .with_environment_variable("OTLP_LOG ")
195
193
/// .with_default_level(LevelFilter::DEBUG)
196
194
/// .build()
197
195
/// }))
198
196
/// .with_otlp_trace_exporter(
199
197
/// Settings::builder()
200
- /// .with_environment_variable("TEST_OTLP_TRACE ")
198
+ /// .with_environment_variable("OTLP_TRACE ")
201
199
/// .with_default_level(LevelFilter::TRACE)
202
200
/// .build()
203
201
/// )
@@ -334,7 +332,7 @@ impl Tracing {
334
332
. build ( )
335
333
}
336
334
337
- /// Initialise the configured tracing subscribers, returning a guard that
335
+ /// Initialize the configured tracing subscribers, returning a guard that
338
336
/// will shutdown the subscribers when dropped.
339
337
///
340
338
/// <div class="warning">
0 commit comments