Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(metrics): add pod information in metrics pipeline (#1710)
Nishant Joshicf145a321c4c
diff --git a/crates/router_env/src/logger/setup.rs b/crates/router_env/src/logger/setup.rsindex 7fafca3bc6..02f9257304 100644--- a/crates/router_env/src/logger/setup.rs+++ b/crates/router_env/src/logger/setup.rs@@ -196,6 +196,13 @@ fn setup_metrics_pipeline(config: &config::LogTelemetry) -> Option<BasicControll.with_exporter(get_opentelemetry_exporter(config)).with_period(Duration::from_secs(3)).with_timeout(Duration::from_secs(10))+ .with_resource(Resource::new(vec![KeyValue::new(+ "pod",+ std::env::var("POD_NAME").map_or(+ "hyperswitch-server-default".into(),+ Into::<opentelemetry::Value>::into,+ ),+ )])).build();if config.ignore_errors {