Skip to content

Commit 3b8e023

Browse files
caugnerDexterp37
andauthored
enhance(telemetry): enable Glean automatic page load events (#10985)
chore(telemetry): remove unnecessary `max_events` option fix(telemetry): allow live debugging Removes the `max_events` option (we already default to 1 in recent versions). and changes the location of the logging enabled/disabled so that live debugging can happen without the logging being overwritten. Co-authored-by: Alessio Placitelli <[email protected]>
1 parent 223fd3c commit 3b8e023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: client/src/telemetry/glean-context.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function glean(): GleanAnalytics {
9191
const uploadEnabled = !userIsOptedOut && GLEAN_ENABLED;
9292

9393
Glean.initialize(GLEAN_APP_ID, uploadEnabled, {
94-
maxEvents: 1,
94+
enableAutoPageLoadEvents: true,
9595
channel: GLEAN_CHANNEL,
9696
migrateFromLegacyStorage: true,
9797
serverEndpoint: DEV_MODE
@@ -101,8 +101,8 @@ function glean(): GleanAnalytics {
101101

102102
if (DEV_MODE) {
103103
Glean.setDebugViewTag("mdn-dev");
104+
Glean.setLogPings(GLEAN_DEBUG);
104105
}
105-
Glean.setLogPings(GLEAN_DEBUG);
106106

107107
const gleanContext = {
108108
page: (page: PageProps) => {

0 commit comments

Comments
 (0)