-
Notifications
You must be signed in to change notification settings - Fork 35
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
Add connection tester failure pixels #881
Conversation
@@ -267,9 +267,8 @@ final class NetworkProtectionConnectionTester { | |||
if failureCount == 0 { | |||
resultHandler(.connected) | |||
} else if failureCount > 0 { | |||
resultHandler(.reconnected(failureCount: failureCount)) |
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.
We want to know how many failures there were before recovery, as we want to send different recovery pixels depending on it.
providerEvents.fire(.connectionTesterStatusChange(.recovered(duration: .immediate, failureCount: failureCount))) | ||
|
||
if failureCount >= 8 { | ||
providerEvents.fire(.connectionTesterStatusChange(.recovered(duration: .extended, failureCount: failureCount))) |
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.
Being able to see if users are seeing failures for more than a couple of minutes is good because we want to see if there's a need to offer some form of manual recovery for this case. This is information that can give us something actionable.
Task/Issue URL: https://app.asana.com/0/1206580121312550/1207743877093953/f macOS PR: duckduckgo/macos-browser#2948 BSK PR: duckduckgo/BrowserServicesKit#881 ## Description Adds pixels to track connection tester failures and recovery. These should give us a better idea about how users are faring.
Task/Issue URL: https://app.asana.com/0/1206580121312550/1207743877093953/f iOS PR: duckduckgo/iOS#3049 BSK PR: duckduckgo/BrowserServicesKit#881 ## Description Adds pixels to track connection tester failures and recovery. These should give us a better idea about how users are faring.
# By Diego Rey Mendez (2) and others # Via Diego Rey Mendez (1) and GitHub (1) * main: Add connection tester failure pixels (#881) De-duplicate passwords on import (#869) Privacy Dashboard refactor (#879) Improve VPN logging logic (#877) Subscription refactoring #5 (#874) Fixes for Xcode16 (#864) Update the Privacy Pro status attribute to use an array. (#878) # Conflicts: # Sources/NetworkProtection/PacketTunnelProvider.swift
Task/Issue URL: https://app.asana.com/0/1206580121312550/1207743877093953/f iOS PR: duckduckgo/iOS#3049 macOS PR: duckduckgo/macos-browser#2948 What kind of version bump will this require?: Patch ## Description Adds pixels to track connection tester failures and recovery. These should give us a better idea about how users are faring.
Task/Issue URL: https://app.asana.com/0/1206580121312550/1207743877093953/f
iOS PR: duckduckgo/iOS#3049
macOS PR: duckduckgo/macos-browser#2948
What kind of version bump will this require?: Patch
Description
Adds pixels to track connection tester failures and recovery. These should give us a better idea about how users are faring.
Testing
See the platform-specific PRs for instructions.
Internal references:
Software Engineering Expectations
Technical Design Template