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

Add connection tester failure pixels #881

Merged
merged 7 commits into from
Jul 6, 2024
Merged

Conversation

diegoreymendez
Copy link
Contributor

@diegoreymendez diegoreymendez commented Jul 5, 2024

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

@@ -267,9 +267,8 @@ final class NetworkProtectionConnectionTester {
if failureCount == 0 {
resultHandler(.connected)
} else if failureCount > 0 {
resultHandler(.reconnected(failureCount: failureCount))
Copy link
Contributor Author

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)))
Copy link
Contributor Author

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.

@diegoreymendez diegoreymendez merged commit 0746af0 into main Jul 6, 2024
7 checks passed
@diegoreymendez diegoreymendez deleted the diego/pixel-tunnel-down branch July 6, 2024 12:00
diegoreymendez added a commit to duckduckgo/iOS that referenced this pull request Jul 6, 2024
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.
diegoreymendez added a commit to duckduckgo/macos-browser that referenced this pull request Jul 6, 2024
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.
samsymons added a commit that referenced this pull request Jul 7, 2024
# 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
mgurgel pushed a commit that referenced this pull request Jul 8, 2024
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.
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.

2 participants