@@ -112,6 +112,7 @@ func TestClientMetricsReporter_Jaeger(t *testing.T) {
112
112
runExpire : true ,
113
113
// first batch cannot increment counters, only capture the baseline
114
114
expCounters : []metricstest.ExpectedMetric {
115
+ {Name : prefix + "batches_received" , Value : 1 },
115
116
{Name : prefix + "batches_sent" , Value : 0 },
116
117
{Name : prefix + "spans_dropped" , Tags : tag ("cause" , "full-queue" ), Value : 0 },
117
118
{Name : prefix + "spans_dropped" , Tags : tag ("cause" , "too-large" ), Value : 0 },
@@ -130,6 +131,7 @@ func TestClientMetricsReporter_Jaeger(t *testing.T) {
130
131
FailedToEmitSpans : 15 ,
131
132
},
132
133
expCounters : []metricstest.ExpectedMetric {
134
+ {Name : prefix + "batches_received" , Value : 2 },
133
135
{Name : prefix + "batches_sent" , Value : 5 },
134
136
{Name : prefix + "spans_dropped" , Tags : tag ("cause" , "full-queue" ), Value : 5 },
135
137
{Name : prefix + "spans_dropped" , Tags : tag ("cause" , "too-large" ), Value : 5 },
@@ -140,6 +142,7 @@ func TestClientMetricsReporter_Jaeger(t *testing.T) {
140
142
clientUUID : & clientUUID ,
141
143
seqNo : nPtr (90 ), // out of order batch will be ignored
142
144
expCounters : []metricstest.ExpectedMetric {
145
+ {Name : prefix + "batches_received" , Value : 3 },
143
146
{Name : prefix + "batches_sent" , Value : 5 }, // unchanged!
144
147
},
145
148
},
@@ -152,6 +155,7 @@ func TestClientMetricsReporter_Jaeger(t *testing.T) {
152
155
TooLargeDroppedSpans : 18 ,
153
156
FailedToEmitSpans : 19 ,
154
157
}, expCounters : []metricstest.ExpectedMetric {
158
+ {Name : prefix + "batches_received" , Value : 4 },
155
159
{Name : prefix + "batches_sent" , Value : 10 },
156
160
{Name : prefix + "spans_dropped" , Tags : tag ("cause" , "full-queue" ), Value : 7 },
157
161
{Name : prefix + "spans_dropped" , Tags : tag ("cause" , "too-large" ), Value : 8 },
0 commit comments