Skip to content

Commit ac8b943

Browse files
author
Beatriz Rizental
authored
Merge pull request #310 from mozilla/release-v0.12.0
Merge back release v0.12.0
2 parents bd81a37 + 0b4f11b commit ac8b943

File tree

6 files changed

+16
-6
lines changed

6 files changed

+16
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Unreleased changes
22

3-
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.11.0...main)
3+
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.12.0...main)
4+
5+
# v0.12.0 (2021-05-11)
6+
7+
[Full changelog](https://github.com/mozilla/glean.js/compare/v0.11.0...v0.12.0)
48

59
* [#279](https://github.com/mozilla/glean.js/pull/279): BUGFIX: Ensure only empty pings triggers logging of "empty ping" messages.
610
* [#288](https://github.com/mozilla/glean.js/pull/288): Support collecting `PlatformInfo` from `Qt` applications. Only OS name and locale are supported.

docs/adding_a_new_metric_type.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class StringMetric extends Metric<string, string> {
9090
}
9191
```
9292

93-
Oce you have your `Metric` subclass, include it in Glean.js'
93+
Once you have your `Metric` subclass, include it in Glean.js'
9494
[`METRIC_MAP`](https://github.com/mozilla/glean.js/blob/main/glean/src/core/metrics/utils.ts#L17).
9595
This map will be used as a template for creating metric instances from the metrics database.
9696

@@ -112,6 +112,10 @@ Still, metric type classes will always have at least one recording function and
112112
> Make sure that, when you included your `Metric` class on the `METRIC_MAP` the property has the
113113
> same value as the `type` property on the corresponding `MetricType`.
114114
115+
Once you are done implementing the `MetricType` class for your new metric type,
116+
make sure to manually expose it for Qt platforms by adding it to
117+
[the Qt entry point file](https://github.com/mozilla/glean.js/blob/main/glean/src/index/qt.ts).
118+
115119
#### Recording functions
116120

117121
_Functions that call Glean.js' database and store concrete values of a metric type._

glean/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

glean/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mozilla/glean",
3-
"version": "0.11.0",
3+
"version": "0.12.0",
44
"description": "An implementation of the Glean SDK, a modern cross-platform telemetry client, for Javascript environments.",
55
"type": "module",
66
"exports": {

glean/src/core/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const GLEAN_SCHEMA_VERSION = 1;
88
//
99
// PACKAGE_VERSION is defined as a global by webpack,
1010
// we need a default here for testing when the app is not build with webpack.
11-
export const GLEAN_VERSION = "0.11.0";
11+
export const GLEAN_VERSION = "0.12.0";
1212

1313
// The name of a "ping" that will include Glean ping_info metrics,
1414
// such as ping sequence numbers.

glean/src/index/qt.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import CounterMetricType from "../core/metrics/types/counter.js";
1414
import DatetimeMetricType from "../core/metrics/types/datetime.js";
1515
import EventMetricType from "../core/metrics/types/event.js";
1616
import LabeledMetricType from "../core/metrics/types/labeled.js";
17+
import QuantityMetricType from "../core/metrics/types/quantity.js";
1718
import StringMetricType from "../core/metrics/types/string.js";
1819
import TimespanMetricType from "../core/metrics/types/timespan.js";
1920
import UUIDMetricType from "../core/metrics/types/uuid.js";
@@ -132,6 +133,7 @@ export default {
132133
DatetimeMetricType,
133134
EventMetricType,
134135
LabeledMetricType,
136+
QuantityMetricType,
135137
StringMetricType,
136138
TimespanMetricType,
137139
UUIDMetricType

0 commit comments

Comments
 (0)