Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance(telemetry): enable Glean automatic page load events #10983

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

Dexterp37
Copy link
Contributor

This additionally 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.

Summary

Problem

Solution


Screenshots

Before

After


How did you test this change?

This additionally 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.
@Dexterp37 Dexterp37 requested a review from a team as a code owner April 23, 2024 14:36
}
Glean.setLogPings(GLEAN_DEBUG);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the intent was here, but we currently support turning on/off debugging from the browser console. By having this line here, whatever we set from the console gets overridden by GLEAN_DEBUG

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dexterp37 I'm curious, how can I enable debugging from the console?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caugner good question! By opening the browser console, you can do window.Glean.set* (you have 3 functions there that you can use to live debug production things as well!)

@caugner caugner changed the title Enable Glean automatic page load events enhance(telemetry): enable Glean automatic page load events Apr 23, 2024
@caugner caugner merged commit 8a9d493 into mdn:next Apr 23, 2024
1 check passed
@Dexterp37 Dexterp37 deleted the patch-1 branch April 24, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants