File tree 2 files changed +9
-11
lines changed 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
13
13
14
14
- remove unnecessary loop from ` osMemoryHeapLinux `
15
15
- Improve performance of ` hashObject ` by using pre-sorted array of label names
16
+ - Fix type of ` collectDefaultMetrics.metricsList `
16
17
17
18
### Added
18
19
Original file line number Diff line number Diff line change @@ -750,20 +750,17 @@ export interface DefaultMetricsCollectorConfiguration<
750
750
labels ?: Object ;
751
751
}
752
752
753
- /**
754
- * Configure default metrics
755
- * @param config Configuration object for default metrics collector
756
- */
757
- export function collectDefaultMetrics < T extends RegistryContentType > (
758
- config ?: DefaultMetricsCollectorConfiguration < T > ,
759
- ) : void ;
760
-
761
- export interface defaultMetrics {
753
+ export const collectDefaultMetrics : {
762
754
/**
763
- * All available default metrics
755
+ * Configure default metrics
756
+ * @param config Configuration object for default metrics collector
764
757
*/
758
+ < T extends RegistryContentType > (
759
+ config ?: DefaultMetricsCollectorConfiguration < T > ,
760
+ ) : void ;
761
+ /** All available default metrics */
765
762
metricsList : string [ ] ;
766
- }
763
+ } ;
767
764
768
765
/**
769
766
* Validate a metric name
You can’t perform that action at this time.
0 commit comments