@@ -875,7 +875,7 @@ def setUpClass(cls):
875
875
def test_counter (self ):
876
876
877
877
aggregation = self .default_aggregation ._create_aggregation (
878
- Counter (Mock () , Mock (), Mock ())
878
+ Counter ("name" , Mock (), Mock ())
879
879
)
880
880
self .assertIsInstance (aggregation , _SumAggregation )
881
881
self .assertTrue (aggregation ._instrument_is_monotonic )
@@ -886,7 +886,7 @@ def test_counter(self):
886
886
def test_up_down_counter (self ):
887
887
888
888
aggregation = self .default_aggregation ._create_aggregation (
889
- UpDownCounter (Mock () , Mock (), Mock ())
889
+ UpDownCounter ("name" , Mock (), Mock ())
890
890
)
891
891
self .assertIsInstance (aggregation , _SumAggregation )
892
892
self .assertFalse (aggregation ._instrument_is_monotonic )
@@ -897,7 +897,7 @@ def test_up_down_counter(self):
897
897
def test_observable_counter (self ):
898
898
899
899
aggregation = self .default_aggregation ._create_aggregation (
900
- ObservableCounter (Mock () , Mock (), Mock (), callbacks = [Mock ()])
900
+ ObservableCounter ("name" , Mock (), Mock (), callbacks = [Mock ()])
901
901
)
902
902
self .assertIsInstance (aggregation , _SumAggregation )
903
903
self .assertTrue (aggregation ._instrument_is_monotonic )
@@ -909,7 +909,7 @@ def test_observable_counter(self):
909
909
def test_observable_up_down_counter (self ):
910
910
911
911
aggregation = self .default_aggregation ._create_aggregation (
912
- ObservableUpDownCounter (Mock () , Mock (), Mock (), callbacks = [Mock ()])
912
+ ObservableUpDownCounter ("name" , Mock (), Mock (), callbacks = [Mock ()])
913
913
)
914
914
self .assertIsInstance (aggregation , _SumAggregation )
915
915
self .assertFalse (aggregation ._instrument_is_monotonic )
@@ -922,9 +922,7 @@ def test_histogram(self):
922
922
923
923
aggregation = self .default_aggregation ._create_aggregation (
924
924
Histogram (
925
- Mock (),
926
- Mock (),
927
- Mock (),
925
+ "name" ,
928
926
Mock (),
929
927
Mock (),
930
928
)
@@ -935,7 +933,7 @@ def test_observable_gauge(self):
935
933
936
934
aggregation = self .default_aggregation ._create_aggregation (
937
935
ObservableGauge (
938
- Mock () ,
936
+ "name" ,
939
937
Mock (),
940
938
Mock (),
941
939
callbacks = [Mock ()],
0 commit comments