Skip to content

Commit c82a37e

Browse files
committed
chore: fix docstring for existing function
1 parent 9343d71 commit c82a37e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ const DIRECTION: Key = Key::from_static_str("direction");
5555
// const PROCESS_GPU_USAGE: &str = "process.gpu.usage";
5656
const PROCESS_GPU_MEMORY_USAGE: &str = "process.gpu.memory.usage";
5757

58-
// Record asynchronnously information about the current process.
59-
// # Example
60-
//
61-
// ```
62-
// use opentelemetry::global;
63-
// use opentelemetry_system_metrics::init_process_observer;
64-
//
65-
// let meter = global::meter("process-meter");
66-
// init_process_observer(meter);
67-
// ```
68-
//
58+
/// Record asynchronnously information about the current process.
59+
/// # Example
60+
///
61+
/// ```
62+
/// use opentelemetry::global;
63+
/// use opentelemetry_system_metrics::init_process_observer;
64+
///
65+
/// let meter = global::meter("process-meter");
66+
/// init_process_observer(meter);
67+
/// ```
68+
///
6969
pub fn init_process_observer(meter: Meter) -> Result<()> {
7070
let pid =
7171
get_current_pid().map_err(|err| eyre::eyre!("could not get current pid. Error: {err}"))?;

0 commit comments

Comments
 (0)