@@ -29,6 +29,7 @@ export const SUPPORTED_METRICS = [
2929 'labeled_custom_distribution' ,
3030 'labeled_timing_distribution' ,
3131 'boolean' ,
32+ 'labeled_boolean' ,
3233] ;
3334
3435export default {
@@ -92,6 +93,7 @@ export default {
9293 // Common probe view mappings for Glean metrics
9394 probeView : {
9495 boolean : 'categorical' ,
96+ labeled_boolean : 'categorical' ,
9597 counter : 'linear' ,
9698 custom_distribution_exponential : 'log' ,
9799 custom_distribution_linear : 'linear' ,
@@ -194,7 +196,7 @@ export default {
194196 let labels = {
195197 ...appStore . getState ( ) . probe . labels ,
196198 } ;
197- if ( metricType === 'boolean' ) {
199+ if ( metricType === 'boolean' || metricType === 'labeled_boolean' ) {
198200 const dataAndLabels =
199201 transformBooleanHistogramToCategoricalHistogram ( data ) ;
200202 data = dataAndLabels . data ;
@@ -254,7 +256,7 @@ export default {
254256 let etc = { } ;
255257
256258 // filter out true/false aggregate results in boolean metrics. See: https://github.com/mozilla/glam/pull/1525#discussion_r694135079
257- if ( metricType === 'boolean' ) {
259+ if ( metricType === 'boolean' || metricType === 'labeled_boolean' ) {
258260 // eslint-disable-next-line no-param-reassign
259261 data = data . filter ( ( di ) => di . client_agg_type === '' ) ;
260262 }
0 commit comments