adc0e221fc
Signed-off-by: Rodolfo Olivieri <rolivier@redhat.com> Signed-off-by: Douwe Osinga <douwe@squareup.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Douwe Osinga <douwe@squareup.com>
20 lines
478 B
Rust
20 lines
478 B
Rust
use anyhow::Result;
|
|
use goose_cli::cli::cli;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> Result<()> {
|
|
if let Err(e) = goose_cli::logging::setup_logging(None) {
|
|
eprintln!("Warning: Failed to initialize logging: {}", e);
|
|
}
|
|
|
|
let result = cli().await;
|
|
|
|
#[cfg(feature = "otel")]
|
|
if goose::otel::otlp::is_otlp_initialized() {
|
|
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
|
|
goose::otel::otlp::shutdown_otlp();
|
|
}
|
|
|
|
result
|
|
}
|