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

1589743: Don't log pings twice #407

Merged
merged 2 commits into from
Oct 24, 2019
Merged

Conversation

mdboom
Copy link
Contributor

@mdboom mdboom commented Oct 23, 2019

This now matches the behavior of glean-ac (logging from the uploader)

@codecov-io
Copy link

codecov-io commented Oct 23, 2019

Codecov Report

Merging #407 into master will increase coverage by 0.01%.
The diff coverage is 63.63%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #407      +/-   ##
============================================
+ Coverage     76.27%   76.29%   +0.01%     
  Complexity      308      308              
============================================
  Files            95       95              
  Lines          5369     5365       -4     
  Branches        631      629       -2     
============================================
- Hits           4095     4093       -2     
+ Misses          806      805       -1     
+ Partials        468      467       -1
Impacted Files Coverage Δ Complexity Δ
...n/java/mozilla/telemetry/glean/rust/LibGleanFFI.kt 66.66% <ø> (ø) 0 <0> (ø) ⬇️
glean-core/src/event_database/mod.rs 53.59% <0%> (ø) 0 <0> (ø) ⬇️
...oid/src/main/java/mozilla/telemetry/glean/Glean.kt 85.48% <100%> (-0.08%) 1 <0> (ø)
glean-core/ios/Glean/Glean.swift 92.35% <100%> (-0.05%) 0 <0> (ø)
glean-core/src/metrics/ping.rs 25% <100%> (ø) 0 <0> (ø) ⬇️
glean-core/src/lib.rs 62.03% <60%> (+0.12%) 0 <0> (ø) ⬇️
...c/main/java/mozilla/telemetry/glean/Dispatchers.kt 78.26% <0%> (+0.98%) 1% <0%> (ø) ⬇️
...in/java/mozilla/telemetry/glean/utils/DateUtils.kt 78.57% <0%> (+1.29%) 0% <0%> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 345288b...d08c7c1. Read the comment docs.

Copy link
Member

@badboy badboy left a comment

Choose a reason for hiding this comment

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

I initially had concerns regarding where to log.
Keeping that only in Rust would mean we don't need to do it again for iOS as well.
But I guess keeping it in the uploader makes more sense, otherwise we might miss some that are triggered from Rust internally where we don't have the state to log these, right?

@mdboom
Copy link
Contributor Author

mdboom commented Oct 24, 2019

But I guess keeping it in the uploader makes more sense, otherwise we might miss some that are triggered from Rust internally where we don't have the state to log these, right?

Yes, I think so.

All of this will probably need to be revisited with the planned architecture refactor to have the Rust core more "in charge" of uploading.

@badboy badboy merged commit 6880581 into mozilla:master Oct 24, 2019
@mdboom mdboom deleted the log-pings-once branch April 2, 2020 16:48
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.

5 participants