New, updated opentelemetry tracing exporter.

This commit is contained in:
Tom Alexander
2023-08-10 21:22:06 -04:00
parent 729be9302b
commit 290a700a22
4 changed files with 80 additions and 28 deletions

View File

@@ -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()