@@ -147,17 +147,6 @@ pub struct Options {
147
147
) ]
148
148
pub metric_bucket_dist_encodings : BucketEncodings ,
149
149
150
- /// Rollout rate for metric stats.
151
- ///
152
- /// Rate needs to be between `0.0` and `1.0`.
153
- /// If set to `1.0` all organizations will have metric stats enabled.
154
- #[ serde(
155
- rename = "relay.metric-stats.rollout-rate" ,
156
- deserialize_with = "default_on_error" ,
157
- skip_serializing_if = "is_default"
158
- ) ]
159
- pub metric_stats_rollout_rate : f32 ,
160
-
161
150
/// Overall sampling of span extraction.
162
151
///
163
152
/// This number represents the fraction of transactions for which
@@ -220,7 +209,6 @@ pub struct BucketEncodings {
220
209
spans : BucketEncoding ,
221
210
profiles : BucketEncoding ,
222
211
custom : BucketEncoding ,
223
- metric_stats : BucketEncoding ,
224
212
}
225
213
226
214
impl BucketEncodings {
@@ -230,7 +218,6 @@ impl BucketEncodings {
230
218
MetricNamespace :: Transactions => self . transactions ,
231
219
MetricNamespace :: Spans => self . spans ,
232
220
MetricNamespace :: Custom => self . custom ,
233
- MetricNamespace :: Stats => self . metric_stats ,
234
221
// Always force the legacy encoding for sessions,
235
222
// sessions are not part of the generic metrics platform with different
236
223
// consumer which are not (yet) updated to support the new data.
@@ -266,7 +253,6 @@ where
266
253
spans : encoding,
267
254
profiles : encoding,
268
255
custom : encoding,
269
- metric_stats : encoding,
270
256
} )
271
257
}
272
258
@@ -470,7 +456,6 @@ mod tests {
470
456
spans: BucketEncoding :: Legacy ,
471
457
profiles: BucketEncoding :: Legacy ,
472
458
custom: BucketEncoding :: Legacy ,
473
- metric_stats: BucketEncoding :: Legacy ,
474
459
}
475
460
) ;
476
461
assert_eq ! (
@@ -480,7 +465,6 @@ mod tests {
480
465
spans: BucketEncoding :: Zstd ,
481
466
profiles: BucketEncoding :: Zstd ,
482
467
custom: BucketEncoding :: Zstd ,
483
- metric_stats: BucketEncoding :: Zstd ,
484
468
}
485
469
) ;
486
470
}
@@ -492,7 +476,6 @@ mod tests {
492
476
spans : BucketEncoding :: Zstd ,
493
477
profiles : BucketEncoding :: Base64 ,
494
478
custom : BucketEncoding :: Zstd ,
495
- metric_stats : BucketEncoding :: Base64 ,
496
479
} ;
497
480
let s = serde_json:: to_string ( & original) . unwrap ( ) ;
498
481
let s = format ! (
0 commit comments