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

Update Glean debugging docs (Fixes #13876) #13877

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

alexgibson
Copy link
Member

@alexgibson alexgibson commented Nov 9, 2023

One-line summary

Updates Glean to favor using the newer console API debugging options (and also tidies up some code along the way).

Issue / Bugzilla link

#13876

Testing

  1. Open http://localhost:8000/en-US/
  2. In the web console, set window.Glean.setLogPings(true) to enable verbose ping logging. Setting window.Glean.setLogPings(false) should disable it again.
  3. Set window.Glean.setDebugViewTag('bedrock') will send pings to https://debug-ping-preview.firebaseapp.com/. Note you can use any string ID here, so I might use something like alex-bedrock.
  4. After enabling debugging, clear session storage to stop it (or close the browser tab).

@@ -6,7 +6,6 @@ page:
type: datetime
lifetime: application
send_in_pings:
- page-view
Copy link
Member Author

Choose a reason for hiding this comment

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

Note for reviewer: these are leftover from #13689 and can be removed.

@alexgibson alexgibson added P3 Third level priority - Nice to have Needs Review Awaiting code review Review: µ Code review time: 5 minutes or less labels Nov 9, 2023
@alexgibson alexgibson marked this pull request as ready for review November 9, 2023 13:10
@alexgibson alexgibson force-pushed the glean-debug branch 4 times, most recently from 45233fe to a189675 Compare November 13, 2023 14:21
@nathan-barrett nathan-barrett merged commit 6eb33ca into mozilla:main Nov 13, 2023
5 checks passed
pmac added a commit to pmac/bedrock that referenced this pull request Nov 13, 2023
pmac added a commit to pmac/bedrock that referenced this pull request Nov 13, 2023
@alexgibson alexgibson deleted the glean-debug branch June 17, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Awaiting code review P3 Third level priority - Nice to have Review: µ Code review time: 5 minutes or less
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants