@@ -19,6 +19,8 @@ pub struct ByNamespace<T> {
1919 pub sessions : T ,
2020 /// Value for the [`MetricNamespace::Spans`] namespace.
2121 pub spans : T ,
22+ /// Value for the [`MetricNamespace::Transactions`] namespace.
23+ pub transactions : T ,
2224 /// Value for the [`MetricNamespace::Custom`] namespace.
2325 pub custom : T ,
2426 /// Value for the [`MetricNamespace::Unsupported`] namespace.
@@ -31,6 +33,7 @@ impl<T> ByNamespace<T> {
3133 match namespace {
3234 MetricNamespace :: Sessions => & self . sessions ,
3335 MetricNamespace :: Spans => & self . spans ,
36+ MetricNamespace :: Transactions => & self . transactions ,
3437 MetricNamespace :: Custom => & self . custom ,
3538 MetricNamespace :: Unsupported => & self . unsupported ,
3639 }
@@ -41,6 +44,7 @@ impl<T> ByNamespace<T> {
4144 match namespace {
4245 MetricNamespace :: Sessions => & mut self . sessions ,
4346 MetricNamespace :: Spans => & mut self . spans ,
47+ MetricNamespace :: Transactions => & mut self . transactions ,
4448 MetricNamespace :: Custom => & mut self . custom ,
4549 MetricNamespace :: Unsupported => & mut self . unsupported ,
4650 }
@@ -49,19 +53,21 @@ impl<T> ByNamespace<T> {
4953
5054impl < T > IntoIterator for ByNamespace < T > {
5155 type Item = ( MetricNamespace , T ) ;
52- type IntoIter = std:: array:: IntoIter < ( MetricNamespace , T ) , 4 > ;
56+ type IntoIter = std:: array:: IntoIter < ( MetricNamespace , T ) , 5 > ;
5357
5458 fn into_iter ( self ) -> Self :: IntoIter {
5559 let Self {
5660 sessions,
5761 spans,
62+ transactions,
5863 custom,
5964 unsupported,
6065 } = self ;
6166
6267 [
6368 ( MetricNamespace :: Sessions , sessions) ,
6469 ( MetricNamespace :: Spans , spans) ,
70+ ( MetricNamespace :: Transactions , transactions) ,
6571 ( MetricNamespace :: Custom , custom) ,
6672 ( MetricNamespace :: Unsupported , unsupported) ,
6773 ]
@@ -104,12 +110,14 @@ macro_rules! impl_op {
104110 let Self {
105111 sessions,
106112 spans,
113+ transactions,
107114 custom,
108115 unsupported,
109116 } = self ;
110117
111118 $op:: $opfn( sessions, rhs. sessions) ;
112119 $op:: $opfn( spans, rhs. spans) ;
120+ $op:: $opfn( transactions, rhs. transactions) ;
113121 $op:: $opfn( custom, rhs. custom) ;
114122 $op:: $opfn( unsupported, rhs. unsupported) ;
115123 }
0 commit comments