chore: init logging

This commit is contained in:
discord9
2025-03-09 20:44:53 +08:00
parent 0751cd74c0
commit 371afc458f
3 changed files with 11 additions and 1 deletions

1
Cargo.lock generated
View File

@@ -5633,6 +5633,7 @@ name = "ingester"
version = "0.13.0"
dependencies = [
"clap 4.5.19",
"common-telemetry",
"common-time",
"datanode",
"meta-client",

View File

@@ -6,6 +6,7 @@ license.workspace = true
[dependencies]
clap.workspace = true
common-telemetry.workspace = true
common-time.workspace = true
datanode.workspace = true
meta-client.workspace = true

View File

@@ -56,9 +56,17 @@ struct IngesterConfig {
mito: MitoConfig,
}
#[allow(unreachable_code)]
pub const APP_NAME: &str = "greptime-ingester";
#[tokio::main]
async fn main() {
let _guard = common_telemetry::init_global_logging(
APP_NAME,
&Default::default(),
&Default::default(),
None,
);
let args = Args::parse();
let cfg_file = std::fs::read_to_string(&args.cfg).expect("Failed to read config file");