New, updated opentelemetry tracing exporter.
This commit is contained in:
12
src/main.rs
12
src/main.rs
@@ -14,7 +14,19 @@ use crate::init_tracing::init_telemetry;
|
||||
use crate::init_tracing::shutdown_telemetry;
|
||||
mod init_tracing;
|
||||
|
||||
#[cfg(not(feature = "tracing"))]
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
main_body()
|
||||
}
|
||||
|
||||
#[cfg(feature = "tracing")]
|
||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let rt = tokio::runtime::Runtime::new()?;
|
||||
let result = rt.block_on(async { main_body() });
|
||||
result
|
||||
}
|
||||
|
||||
fn main_body() -> Result<(), Box<dyn std::error::Error>> {
|
||||
init_telemetry()?;
|
||||
run_compare(
|
||||
std::env::args()
|
||||
|
||||
Reference in New Issue
Block a user