@@ -43,7 +43,7 @@ func (cme *nopMetricsExporter) ExportView(vd *view.Data) {}
4343
4444// CheckRecordedMetricsForTraceExporter checks that the given TraceExporter records the correct set of metrics with the correct
4545// set of tags by sending some TraceData to the exporter. The exporter should be able to handle the requests.
46- func CheckRecordedMetricsForTraceExporter (t * testing.T , te exporter.TraceExporter , exporterTagName string ) {
46+ func CheckRecordedMetricsForTraceExporter (t * testing.T , te exporter.TraceExporter ) {
4747 // Register a nop metrics exporter for the OC library.
4848 nmp := new (nopMetricsExporter )
4949 view .RegisterExporter (nmp )
@@ -98,8 +98,8 @@ func CheckRecordedMetricsForTraceExporter(t *testing.T, te exporter.TraceExporte
9898 }
9999 }
100100
101- checkValueForExporterView (t , observability .ViewExporterReceivedSpans , exporterTagName , int64 (numBatches * len (spans )))
102- checkValueForExporterView (t , observability .ViewExporterDroppedSpans , exporterTagName , 0 )
101+ checkValueForExporterView (t , observability .ViewExporterReceivedSpans , te . TraceExportFormat () , int64 (numBatches * len (spans )))
102+ checkValueForExporterView (t , observability .ViewExporterDroppedSpans , te . TraceExportFormat () , 0 )
103103}
104104
105105func checkValueForExporterView (t * testing.T , v * view.View , exporterTagName string , value int64 ) {
0 commit comments