@@ -62,13 +62,11 @@ pub enum Error {
6262///
6363/// # Usage
6464///
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
6866///
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
7270/// to hold onto the guard as long as required.
7371///
7472/// <div class="warning">
@@ -178,26 +176,26 @@ pub enum Error {
178176/// .service_name("test")
179177/// .with_console_output(
180178/// Settings::builder()
181- /// .with_environment_variable("TEST_CONSOLE ")
179+ /// .with_environment_variable("CONSOLE_LOG ")
182180/// .with_default_level(LevelFilter::INFO)
183181/// .build()
184182/// )
185183/// .with_file_output(
186184/// Settings::builder()
187- /// .with_environment_variable("TEST_FILE_LOG ")
185+ /// .with_environment_variable("FILE_LOG ")
188186/// .with_default_level(LevelFilter::INFO)
189- /// .file_log_settings_builder("/tmp/logs", "tracing-rs .log")
187+ /// .file_log_settings_builder("/tmp/logs", "operator .log")
190188/// .build()
191189/// )
192190/// .with_otlp_log_exporter(otlp_log_flag.then(|| {
193191/// Settings::builder()
194- /// .with_environment_variable("TEST_OTLP_LOG ")
192+ /// .with_environment_variable("OTLP_LOG ")
195193/// .with_default_level(LevelFilter::DEBUG)
196194/// .build()
197195/// }))
198196/// .with_otlp_trace_exporter(
199197/// Settings::builder()
200- /// .with_environment_variable("TEST_OTLP_TRACE ")
198+ /// .with_environment_variable("OTLP_TRACE ")
201199/// .with_default_level(LevelFilter::TRACE)
202200/// .build()
203201/// )
@@ -334,7 +332,7 @@ impl Tracing {
334332 . build ( )
335333 }
336334
337- /// Initialise the configured tracing subscribers, returning a guard that
335+ /// Initialize the configured tracing subscribers, returning a guard that
338336 /// will shutdown the subscribers when dropped.
339337 ///
340338 /// <div class="warning">
0 commit comments