Constellation, Spacedust, Slingshot, UFOs: atproto crates and services for microcosm
0

Configure Feed

Select the types of activity you want to include in your feed.

restore existing metrics behaviour

+2 -1
+2 -1
constellation/src/bin/main.rs
··· 301 301 302 302 fn install_metrics_server(metrics_bind: SocketAddr) -> Result<()> { 303 303 println!("installing metrics server..."); 304 + #[expect(deprecated, reason = "would change counters to _total suffix, needs dash updates")] 304 305 PrometheusBuilder::new() 305 306 .idle_timeout( 306 307 metrics_util::MetricKindMask::ALL, ··· 309 310 .set_quantiles(&[0.5, 0.9, 0.99, 1.0])? 310 311 .set_bucket_duration(time::Duration::from_secs(30))? 311 312 .set_bucket_count(NonZero::new(10).unwrap()) // count * duration = 5 mins. stuff doesn't happen that fast here. 312 - .with_recommended_naming(true) 313 + .set_enable_unit_suffix(true) 313 314 .with_http_listener(metrics_bind) 314 315 .install()?; 315 316 println!("metrics server installed! listening at {metrics_bind:?}");