mozilla / fxa

Monorepo for Mozilla Accounts (formerly Firefox Accounts)
https://mozilla.github.io/ecosystem-platform/
Mozilla Public License 2.0
580 stars 210 forks source link

fix(metrics): Add metrics for `set_password` view, in glean and amplitude #17139

Closed vbudhram closed 1 month ago

vbudhram commented 1 month ago

Because

This pull request

Issue that this pull request solves

Closes: https://mozilla-hub.atlassian.net/browse/FXA-9116

Checklist

Other information (Optional)

I set Glean up locally and ran through the flows. You can see the metrics that were emitted here.

For amplitude, these are the metrics emitted

35|content  | INFO fxa-content-server.amplitudeEvent: {"op":"amplitudeEvent","event_type":"fxa_third_party_auth - set_password_view","time":1718657455887,"device_id":"e5dc5d986fea47f99cd66c4ab18f2199","session_id":1718657448690,"app_version":"0.0","language":"en-US","os_name":"Mac OS X","os_version":"10.15","event_properties":{"service":"sync"},"user_properties":{"entrypoint":"preferences","flow_id":"1e077abcf28bef2e15bf4eee493c45c1c8aa2382f0a2ad5f406984ac7a96e713","ua_browser":"Firefox","ua_version":"126.0","$append":{"fxa_services_used":"sync"}}}
35|content  | INFO fxa-content-server.amplitudeEvent: {"op":"amplitudeEvent","event_type":"fxa_third_party_auth - set_password_engage","time":1718657456661,"device_id":"e5dc5d986fea47f99cd66c4ab18f2199","session_id":1718657448690,"app_version":"0.0","language":"en-US","os_name":"Mac OS X","os_version":"10.15","event_properties":{"service":"sync"},"user_properties":{"entrypoint":"preferences","flow_id":"1e077abcf28bef2e15bf4eee493c45c1c8aa2382f0a2ad5f406984ac7a96e713","ua_browser":"Firefox","ua_version":"126.0","$append":{"fxa_services_used":"sync"}}}
35|content  | INFO fxa-content-server.amplitudeEvent: {"op":"amplitudeEvent","event_type":"fxa_third_party_auth - set_password_submit","time":1718657468009,"device_id":"e5dc5d986fea47f99cd66c4ab18f2199","session_id":1718657448690,"app_version":"0.0","language":"en-US","os_name":"Mac OS X","os_version":"10.15","event_properties":{"service":"sync"},"user_properties":{"entrypoint":"preferences","flow_id":"1e077abcf28bef2e15bf4eee493c45c1c8aa2382f0a2ad5f406984ac7a96e713","ua_browser":"Firefox","ua_version":"126.0","$append":{"fxa_services_used":"sync"},"sync_engines":["bookmarks","history","passwords","addons","tabs","prefs","creditcards"]}}
35|content  | INFO fxa-content-server.amplitudeEvent: {"op":"amplitudeEvent","event_type":"fxa_third_party_auth - set_password_success","time":1718657468181,"device_id":"e5dc5d986fea47f99cd66c4ab18f2199","session_id":1718657448690,"app_version":"0.0","language":"en-US","os_name":"Mac OS X","os_version":"10.15","event_properties":{"service":"sync"},"user_properties":{"entrypoint":"preferences","flow_id":"1e077abcf28bef2e15bf4eee493c45c1c8aa2382f0a2ad5f406984ac7a96e713","ua_browser":"Firefox","ua_version":"126.0","$append":{"fxa_services_used":"sync"},"sync_engines":["bookmarks","history","passwords","addons","tabs","prefs","creditcards"]}}