mozilla / fxa-auth-server

DEPRECATED - Migrated to https://github.com/mozilla/fxa
Mozilla Public License 2.0
399 stars 121 forks source link

service names not translated when sent to amplitude for several services #2996

Closed shane-tomlinson closed 5 years ago

shane-tomlinson commented 5 years ago

I know this is a bug for cloudops-deployment, but wanted to capture this in a public place since the events are amplitude emit from here.

Running this query in BigQuery:

SELECT
  jsonPayload.fields.event_properties as ep
FROM
  `moz-fx-fxa-prod-0712.fxa_prod_logs.docker_fxa_auth_20190327`
WHERE jsonPayload.fields.event_type = 'fxa_activity - cert_signed'
AND jsonPayload.fields.event_properties LIKE "%undefined_oauth%"
GROUP BY ep
ORDER BY ep
LIMIT
  10

Results in:


1 | {"service":"undefined_oauth","oauth_client_id":"20f7931c9054d833"} |  
-- | -- | --
2 | {"service":"undefined_oauth","oauth_client_id":"3c49430b43dfba77"} |  
3 | {"service":"undefined_oauth","oauth_client_id":"9dbca21ec249771d"} |  
4 | {"service":"undefined_oauth","oauth_client_id":"a2270f727f45f648"} |  
5 | {"service":"undefined_oauth","oauth_client_id":"e7ce535d93522896"} |  

20f7931c9054d833 is Firefox Send for Android 3c49430b43dfba77 is Android Components Reference Browser 9dbca21ec249771d is Firefox Add-ons Frontend (stage) a2270f727f45f648 is Fenix e7ce535d93522896 is Firefox Lockbox for Android

ref #2957

This will make it difficult to segment those services on amplitude except by client_id