Skip to content

Commit

Permalink
Upgrade lints package to version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Fox32 committed Oct 3, 2022
1 parent ade1bee commit 3cc549b
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions prometheus_client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0+1

- Upgrade `lints` package to version `2.0.0`.

## 1.0.0

- Stable release of prometheus_client 🎉, contains no changes since `0.6.0`.
Expand Down
2 changes: 1 addition & 1 deletion prometheus_client/lib/src/prometheus_client/collector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class CollectorRegistry {
for (var name in collectorNames) {
if (_namesToCollectors.containsKey(name)) {
throw ArgumentError(
'Collector already registered that provides name: ' + name);
'Collector already registered that provides name: $name');
}
}

Expand Down
6 changes: 3 additions & 3 deletions prometheus_client/lib/src/prometheus_client/histogram.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,16 @@ class Histogram extends _SimpleCollector<HistogramChild> {

for (var i = 0; i < buckets.length; ++i) {
samples.add(Sample(
name + '_bucket',
'${name}_bucket',
labelNamesWithLe,
List.of(labelValues)..add(formatDouble(buckets[i])),
child._bucketValues[i],
));
}

samples
.add(Sample(name + '_count', labelNames, labelValues, child.count));
samples.add(Sample(name + '_sum', labelNames, labelValues, child.sum));
.add(Sample('${name}_count', labelNames, labelValues, child.count));
samples.add(Sample('${name}_sum', labelNames, labelValues, child.sum));
});

return [MetricFamilySamples(name, MetricType.histogram, help, samples)];
Expand Down
4 changes: 2 additions & 2 deletions prometheus_client/lib/src/prometheus_client/summary.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ class Summary extends _SimpleCollector<SummaryChild> {
}

samples
.add(Sample(name + '_count', labelNames, labelValues, child.count));
samples.add(Sample(name + '_sum', labelNames, labelValues, child.sum));
.add(Sample('${name}_count', labelNames, labelValues, child.count));
samples.add(Sample('${name}_sum', labelNames, labelValues, child.sum));
});

return [MetricFamilySamples(name, MetricType.summary, help, samples)];
Expand Down
4 changes: 2 additions & 2 deletions prometheus_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: prometheus_client
description: Dart implementation of the Prometheus client library providing metrics.
version: 1.0.0
version: 1.0.0+1
homepage: https://github.com/tentaclelabs/prometheus_client

environment:
Expand All @@ -10,5 +10,5 @@ dependencies:
collection: ^1.15.0

dev_dependencies:
lints: ^1.0.1
lints: ^2.0.0
test: ^1.16.0
4 changes: 4 additions & 0 deletions prometheus_client_shelf/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0+1

- Upgrade `lints` package to version `2.0.0`.

## 1.0.0

- Stable release of prometheus_client_shelf 🎉, contains no changes since `0.6.0`.
Expand Down
4 changes: 2 additions & 2 deletions prometheus_client_shelf/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: prometheus_client_shelf
description: Dart implementation of the Prometheus client library providing a shelf integration.
version: 1.0.0
version: 1.0.0+1
homepage: https://github.com/tentaclelabs/prometheus_client

environment:
Expand All @@ -12,7 +12,7 @@ dependencies:
collection: ^1.15.0

dev_dependencies:
lints: ^1.0.1
lints: ^2.0.0
test: ^1.16.0
# Dependency is required for the example
shelf_router: ^1.0.0
Expand Down

0 comments on commit 3cc549b

Please sign in to comment.