feat: add version and uuid to startup message (#7264)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/24376/head
Andrew Lamb 2023-03-23 17:55:17 +01:00 committed by GitHub
parent 520140c322
commit 99b5e0b6ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -7,6 +7,8 @@ use panic_logging::SendPanicsToTracing;
use snafu::{ResultExt, Snafu}; use snafu::{ResultExt, Snafu};
use tokio_util::sync::CancellationToken; use tokio_util::sync::CancellationToken;
use crate::process_info;
#[cfg(all(not(feature = "heappy"), feature = "jemalloc_replacing_malloc"))] #[cfg(all(not(feature = "heappy"), feature = "jemalloc_replacing_malloc"))]
mod jemalloc; mod jemalloc;
@ -73,11 +75,12 @@ pub async fn main(
services: Vec<Service>, services: Vec<Service>,
metrics: Arc<metric::Registry>, metrics: Arc<metric::Registry>,
) -> Result<()> { ) -> Result<()> {
let git_hash = env!("GIT_HASH", "starting influxdb_iox server");
let num_cpus = num_cpus::get(); let num_cpus = num_cpus::get();
let build_malloc_conf = build_malloc_conf(); let build_malloc_conf = build_malloc_conf();
info!( info!(
git_hash, git_hash = %process_info::IOX_GIT_HASH as &str,
version = %process_info::IOX_VERSION.as_ref() as &str,
uuid = %process_info::PROCESS_UUID.as_ref() as &str,
num_cpus, num_cpus,
%build_malloc_conf, %build_malloc_conf,
"InfluxDB IOx server starting", "InfluxDB IOx server starting",