You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[#1154](https://github.com/mozilla/glean.js/pull/1130): BUGFIX: Implemented initialize and set_upload_enabled reasons for deletion-request ping.
10
+
*[#1233](https://github.com/mozilla/glean.js/pull/1233): Add optional `buildDate` argument to `initialize` configuration. The build date can be generated by glean_parser.
11
+
*[#1233](https://github.com/mozilla/glean.js/pull/1233): Update glean_parser to version 5.1.0.
12
+
*[#1217](https://github.com/mozilla/glean.js/pull/1217): Record `InvalidType` error when incorrectly type values are passed to metric recording functions.
13
+
*[#1267](https://github.com/mozilla/glean.js/pull/1267): Implement the 'events' ping.
*[#1220](https://github.com/mozilla/glean.js/pull/1220): Refactor virtual environment behavior to support virtual environments that aren't in the project root.
10
-
* This means it's possible to run Glean with a virtual environment created by `virtualenv` or `pyenv-virtualenv` without causing a Glean-specific `.venv` directory to be created in a project that is using Glean.
* Timestamps were observed to be negative in a few occurrences, for platforms that do not provide the `performance.now` API, namely QML, and in which we fallback to the `Date.now` API.
The `testGetNumRecordedErrors` function does not need to be implemented individually per metric
173
169
type as it is already implemented on the `MetricType` super class.
174
170
171
+
### The `MetricType` class
172
+
173
+
The `MetricType` class is the default export on each metric type file. It exposes **only** the APIs
174
+
users will interact with and contains the `InternalMetricType` instance as a [private field](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields).
175
+
It is a wrapper around the `InternalMetricType`.
176
+
177
+
Once you are done implementing the `MetricType` class for your new metric type,
178
+
make sure to manually expose it for Qt platforms by adding it to
179
+
[the Qt entry point file](https://github.com/mozilla/glean.js/blob/main/glean/src/index/qt.ts).
180
+
175
181
## Testing
176
182
177
183
Tests for metric type implementations live under the `glean/tests/unit/core/metrics/types` folder. Create a new
0 commit comments