Web server that receives gzip'd POST requests and saves them uncompressed locally
To force Firefox to send a Telemetry payload to this server:
- Start the server:
./gzipServer.py
(you may need to install simplejson Python module) - Change the toolkit.telemetry.server Firefox pref in about:config to http://127.0.0.1/
- Restart Firefox to have Telemetry pick up the above pref change
- Open about:telemetry (it has the Telemetry namespaces nicely set up) and open the DevTools console
- Paste the following into the console:
TelemetrySession.testPing();
- The script will save the request it receives to report1.json in the script's working directory
Note: The procedure above will create a "test ping", which is equivalent to a regular Telemetry saved-session ping.
Alternatives:
- If you just need to see the Telemetry measurements from the current session, you can see them directly on the about:telemetry page in Firefox.
- If you need to see what the full ping looks like, but you don't need to send it to a server, simply exit Firefox and you will find the ping for the latest session saved in
<profile-directory>\saved-telemetry-pings
. - You can also get the full ping from the DevTools console by opening the about:telemetry page and running the command
ping = TelemetrySession.getPayload()
. If you need Telemetry from the content process in the ping as well, callTelemetrySession.requestChildPayloads()
before you callTelemetrySession.getPayload()
.