Skip to content

Commit 627555a

Browse files
committed
Merge branch 'release-v4.0.0-pre.3' into release
2 parents 9638c47 + 234624f commit 627555a

File tree

19 files changed

+387
-301
lines changed

19 files changed

+387
-301
lines changed

.dictionary

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ firefox
5050
getters
5151
gzip
5252
gzipping
53+
html
5354
init
5455
instantiation
5556
janerik

CHANGELOG.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,32 @@
11
# Unreleased changes
22

3-
[Full changelog](https://github.com/mozilla/glean.js/compare/v4.0.0-pre.2...main)
3+
[Full changelog](https://github.com/mozilla/glean.js/compare/v4.0.0-pre.3...main)
4+
5+
# v4.0.0-pre.3 (2023-12-22)
6+
7+
[Full changelog](https://github.com/mozilla/glean.js/compare/v4.0.0-pre.2...v4.0.0-pre.3)
8+
9+
* [#1848](https://github.com/mozilla/glean.js/pull/1848): Support for automatically collecting element click events (first version)
10+
* [#1849](https://github.com/mozilla/glean.js/pull/1849): Truncate event extra strings to 500 bytes. This also updates other string-based metrics to truncate based on max bytes rather than a set number of characters.
411

512
# v4.0.0-pre.2 (2023-12-06)
613

714
[Full changelog](https://github.com/mozilla/glean.js/compare/v4.0.0-pre.1...v4.0.0-pre.2)
815

9-
[#1835](https://github.com/mozilla/glean.js/pull/1835): Added support for automatic page load instrumentation.
16+
* [#1835](https://github.com/mozilla/glean.js/pull/1835): Added support for automatic page load instrumentation.
17+
* [#1846](https://github.com/mozilla/glean.js/pull/1846): Add logging messages when using the debugging APIs from the browser console.
1018

1119
# v4.0.0-pre.1 (2023-12-01)
1220

1321
[Full changelog](https://github.com/mozilla/glean.js/compare/v4.0.0-pre.0...v4.0.0-pre.1)
1422

15-
[#1834](https://github.com/mozilla/glean.js/pull/1834): Added support for `navigator.sendBeacon`. This is not turned on by default and needs to be enabled manually.
23+
* [#1834](https://github.com/mozilla/glean.js/pull/1834): Added support for `navigator.sendBeacon`. This is not turned on by default and needs to be enabled manually.
1624

1725
# v4.0.0-pre.0 (2023-11-27)
1826

1927
[Full changelog](https://github.com/mozilla/glean.js/compare/v3.0.0...v4.0.0-pre.0)
2028

21-
[#1808](https://github.com/mozilla/glean.js/pull/1808): **BREAKING CHANGE**: Make glean.js fully synchronous.
22-
29+
* [#1808](https://github.com/mozilla/glean.js/pull/1808): **BREAKING CHANGE**: Make glean.js fully synchronous.
2330
* [#1835](https://github.com/mozilla/glean.js/pull/1835): Automatic instrumentation of page load events for simple web properties.
2431

2532
# v3.0.0 (2023-11-16)

docs/reference/metrics.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This means you might have to go searching through the dependency tree to get a f
1010

1111
- [all-pings](#all-pings)
1212
- [deletion-request](#deletion-request)
13+
- [events](#events)
1314

1415
## all-pings
1516

@@ -60,6 +61,48 @@ All Glean pings contain built-in metrics in the [`ping_info`](https://mozilla.gi
6061

6162
This ping contains no metrics.
6263

64+
## events
65+
66+
This is a built-in ping that is assembled out of the box by the Glean SDK.
67+
68+
See the Glean SDK documentation for the [`events` ping](https://mozilla.github.io/glean/book/user/pings/events.html).
69+
70+
This ping includes the [client id](https://mozilla.github.io/glean/book/user/pings/index.html#the-client_info-section).
71+
72+
**Data reviews for this ping:**
73+
74+
- <https://bugzilla.mozilla.org/show_bug.cgi?id=1512938#c3>
75+
76+
**Bugs related to this ping:**
77+
78+
- <https://bugzilla.mozilla.org/1512938>
79+
80+
**Reasons this ping may be sent:**
81+
82+
- `inactive`: The ping was submitted when becoming inactive. In earlier versions, this
83+
was called `background`.
84+
85+
NOTE: It is not possible to find a definition of "inactivity" that spans
86+
all of the platforms served by the Glean JavaScript SDK.
87+
This reason is only listed here for documentation purposes.
88+
It is never reported by the JavaScript SDK.
89+
90+
- `max_capacity`: The maximum number of events was reached (default 1 event).
91+
92+
- `startup`: The ping was submitted at startup.
93+
The events ping is always sent if there are any pending events at startup,
94+
because event timestamps are not as reliable across application runs.
95+
96+
97+
All Glean pings contain built-in metrics in the [`ping_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-ping_info-section) and [`client_info`](https://mozilla.github.io/glean/book/user/pings/index.html#the-client_info-section) sections.
98+
99+
In addition to those built-in metrics, the following metrics are added to the ping:
100+
101+
| Name | Type | Description | Data reviews | Extras | Expiration | [Data Sensitivity](https://wiki.mozilla.org/Firefox/Data_Collection) |
102+
| --- | --- | --- | --- | --- | --- | --- |
103+
| glean.element_click |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A event triggered whenever an html element is clicked on a page. **Clicks are recorded only for those html elements that have at least one of the `data-glean-*` data attributes. By default, this event is not collected automatically. Collection can be turned on by clients via Glean configuration object (`enableAutoElementClickEvents`). Glean also provides a separate API for clients to record element clicks manually.** |[Bug 1867294](https://bugzilla.mozilla.org/show_bug.cgi?id=1867294#c29)|<ul><li>id: An identifier of the element clicked. For automatic collection, its value is the element's `data-glean-id` data attribute value.</li><li>label: The label of the element clicked. For automatic collection, its value is the element's `data-glean-label` data attribute value.</li><li>type: The type of the element clicked. For automatic collection, its value is the element's `data-glean-type` data attribute value.</li></ul>|never |2 |
104+
| glean.page_load |[event](https://mozilla.github.io/glean/book/user/metrics/event.html) |A event triggered whenever a page is loaded. **This event by default is not collected automatically. This can be turned on by the client in the Glean configuration object (`enableAutoPageLoadEvents`). Glean provides a separate API for collecting the same page load data if the client wants to collect page loads manually.** |[Bug 1867126](https://bugzilla.mozilla.org/show_bug.cgi?id=1867126#c8)|<ul><li>referrer: The page referrer.</li><li>title: The page title.</li><li>url: The page URL.</li></ul>|never |2 |
105+
63106
Data categories are [defined here](https://wiki.mozilla.org/Firefox/Data_Collection).
64107

65108
<!-- AUTOGENERATED BY glean_parser v10.0.3. DO NOT EDIT. -->

0 commit comments

Comments
 (0)