use iroh_metrics::config::Config as MetricsConfig;
use crate::VERSION;
pub fn metrics_config_with_compile_time_info(cfg: MetricsConfig) -> MetricsConfig {
// compile time configuration
cfg.with_service_name(env!("CARGO_PKG_NAME").to_string())
.with_build(
git_version::git_version!(
prefix = "git:",
cargo_prefix = "cargo:",
fallback = "unknown"
)
.to_string(),
)
.with_version(VERSION.to_string())
}