@@ -63,27 +63,27 @@ public function meter(): MeterInterface
6363 }
6464 }
6565
66- public function createCounter (string $ name , ?string $ unit = null ,
67- ?string $ description = null , array $ advisory = []): CounterInterface
66+ public function counter (string $ name , ?string $ unit = null ,
67+ ?string $ description = null , array $ advisories = []): CounterInterface
6868 {
69- return $ this ->meter ()->createCounter ($ name , $ unit , $ description , $ advisory );
69+ return $ this ->meter ()->createCounter ($ name , $ unit , $ description , $ advisories );
7070 }
7171
72- public function createHistogram (string $ name , ?string $ unit = null ,
73- ?string $ description = null , array $ advisory = []): HistogramInterface
72+ public function histogram (string $ name , ?string $ unit = null ,
73+ ?string $ description = null , array $ advisories = []): HistogramInterface
7474 {
75- return $ this ->meter ()->createHistogram ($ name , $ unit , $ description , $ advisory );
75+ return $ this ->meter ()->createHistogram ($ name , $ unit , $ description , $ advisories );
7676 }
7777
78- public function createGauge (string $ name , ?string $ unit = null ,
79- ?string $ description = null , array $ advisory = []): GaugeInterface
78+ public function gauge (string $ name , ?string $ unit = null ,
79+ ?string $ description = null , array $ advisories = []): GaugeInterface
8080 {
81- return $ this ->meter ()->createGauge ($ name , $ unit , $ description , $ advisory );
81+ return $ this ->meter ()->createGauge ($ name , $ unit , $ description , $ advisories );
8282 }
8383
84- public function createObservableGauge (string $ name , ?string $ unit = null ,
85- ?string $ description = null , array |callable $ advisory = [], callable ...$ callbacks ): ObservableGaugeInterface
84+ public function observableGauge (string $ name , ?string $ unit = null ,
85+ ?string $ description = null , array |callable $ advisories = [], callable ...$ callbacks ): ObservableGaugeInterface
8686 {
87- return $ this ->meter ()->createObservableGauge ($ name , $ unit , $ description , $ advisory , $ callbacks );
87+ return $ this ->meter ()->createObservableGauge ($ name , $ unit , $ description , $ advisories , ... $ callbacks );
8888 }
8989}
0 commit comments