-
Notifications
You must be signed in to change notification settings - Fork 218
Add telemetry for uri count. #540
Add telemetry for uri count. #540
Conversation
5a5a29e
to
bf30cde
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't clear that this is doing what you expect. Have you tested that the domains are getting created correctly and we are not uploading user data with the domains?
app/src/common/shared/org/mozilla/vrbrowser/utils/UrlUtils.java
Outdated
Show resolved
Hide resolved
return host.substring(start); | ||
} | ||
|
||
public static boolean isLocalizedContent(@Nullable String url) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this function actually does anything right now. If it is supposed to filter out local content like error pages and the home page, it needs to do a lot more than just watch for about:blank
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making isLocalizedContent ()
to check if it is PRIVATE_BROWSING_URI, HOME_WITHOUT_REGION_ORIGIN, getHomeUri, and about:blank
app/src/common/shared/org/mozilla/vrbrowser/telemetry/TelemetryWrapper.java
Outdated
Show resolved
Hide resolved
app/src/common/shared/org/mozilla/vrbrowser/telemetry/TelemetryWrapper.java
Outdated
Show resolved
Hide resolved
app/src/common/shared/org/mozilla/vrbrowser/utils/UrlUtils.java
Outdated
Show resolved
Hide resolved
app/src/common/shared/org/mozilla/vrbrowser/utils/UrlUtils.java
Outdated
Show resolved
Hide resolved
yes. I have tested. For example |
d88ea18
to
3e4088f
Compare
Sorry, I miss read the code. |
3e4088f
to
4feb367
Compare
Update
mozilla.components:telemetry
to 0.23 for using large size of histograms.Follow the requirement for the product side to understand URI count as Focus team (mozilla-mobile/focus-android#3320 (comment)) and add the histogram to know the avg. time spent for the page loading.
@pocmo Please help review the telemetry part. I believe we need a data review as well.