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

Log product, os, and lang #221

Merged
merged 1 commit into from
May 23, 2024
Merged

Log product, os, and lang #221

merged 1 commit into from
May 23, 2024

Conversation

willdurand
Copy link
Member

Fixes #219

Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.80%. Comparing base (e01f8ce) to head (0ef7816).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #221      +/-   ##
==========================================
+ Coverage   84.66%   84.80%   +0.13%     
==========================================
  Files          15       15              
  Lines         874      882       +8     
==========================================
+ Hits          740      748       +8     
  Misses         92       92              
  Partials       42       42              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@bhearsum bhearsum left a comment

Choose a reason for hiding this comment

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

The things that are here seem fine, but just to go over everything that was requested:

country (or a T/F indicating “came from EU Banner country”)

This seems like it would be possible to add, but not trivially (you'd need to incorporate a geoip library, and then keep that up to date?).

OS, OS version
Downloading browser (if available)

OS of the download is covered here; but not the other parts.

Can/should User Agent, or parts of it be logged? IIRC OS Version is not reliable in User Agent strings, but I think it would cover OS & Browser (for cases where the user agent isn't a lie, anyways).

Channel, locale, and build of downloaded installer (if available)

locale is directly covered here, but not the other two. Channel could be inferred (I think) by looking at product. I'm assuming build is supposed to be the version number being requested, which seems like it could be covered here?

@willdurand
Copy link
Member Author

willdurand commented May 23, 2024

Right, the initial issue hasn't been updated but the data review request only mentions os, product and locale, see: https://bugzilla.mozilla.org/show_bug.cgi?id=1896957. That's because "we only want what's currently easy to add" (quoted from the issue).

We'll probably want to update the issue.

@willdurand willdurand requested a review from bhearsum May 23, 2024 08:11
@willdurand willdurand merged commit 46c1fe5 into master May 23, 2024
3 checks passed
@willdurand willdurand deleted the log-more branch May 23, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Log os, product and lang to Stubattribution Logs
2 participants