1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! OpenTelemetry HTTP server for mi6.
//!
//! This crate provides an HTTP server that receives OpenTelemetry log data
//! and stores it using the mi6 storage backend. It isolates the HTTP server
//! dependencies (tiny_http) from mi6-core and enables reuse in other tools.
//!
//! # Architecture
//!
//! - [`server`] - HTTP server implementation for receiving OTel logs
//! - [`lifecycle`] - Process management (start/stop/status)
//!
//! # Example
//!
//! ```no_run
//! use mi6_otel_server::{ensure_running, stop_server, is_server_running, DEFAULT_PORT};
//!
//! // Check if server is running
//! if !is_server_running(DEFAULT_PORT) {
//! // Start the server (None uses default mode from config)
//! ensure_running(DEFAULT_PORT, false, None).unwrap();
//! }
//!
//! // Later, stop the server
//! stop_server(DEFAULT_PORT).unwrap();
//! ```
// Allow stderr for server status messages
// Re-export commonly used items
pub use ;
pub use run_server;