Skip to content

Commit cd52588

Browse files
committed
docs: add metrics docs
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 72a03bf commit cd52588

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/tap-agent/src/metrics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ async fn _run_server(port: u16) {
4848
};
4949
}
5050

51+
/// Run the server on a given `port`.
52+
///
53+
/// This is recommended to run inside a Task
5154
pub async fn run_server(port: u16) {
5255
// Code here is to abort program if there is a panic in _run_server
5356
// Otherwise, when spawning the task, the panic will be silently ignored

0 commit comments

Comments
 (0)