mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-01 02:57:02 +08:00 
			
		
		
		
	feat(metrics): add pod information in metrics pipeline (#1710)
This commit is contained in:
		| @ -196,6 +196,13 @@ fn setup_metrics_pipeline(config: &config::LogTelemetry) -> Option<BasicControll | |||||||
|         .with_exporter(get_opentelemetry_exporter(config)) |         .with_exporter(get_opentelemetry_exporter(config)) | ||||||
|         .with_period(Duration::from_secs(3)) |         .with_period(Duration::from_secs(3)) | ||||||
|         .with_timeout(Duration::from_secs(10)) |         .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(); |         .build(); | ||||||
|  |  | ||||||
|     if config.ignore_errors { |     if config.ignore_errors { | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Nishant Joshi
					Nishant Joshi