-
Notifications
You must be signed in to change notification settings - Fork 11
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
macOS: Add pixels to track VPN wake and stop attempts #2694
Conversation
DuckDuckGo.xcodeproj/project.pbxproj
Outdated
@@ -1082,7 +1082,6 @@ | |||
4B2D06292A11C0C900DE1F49 /* Bundle+VPN.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B4D605E2A0B29FA00BCD287 /* Bundle+VPN.swift */; }; | |||
4B2D062A2A11C0C900DE1F49 /* NetworkProtectionOptionKeyExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B4D605F2A0B29FA00BCD287 /* NetworkProtectionOptionKeyExtension.swift */; }; | |||
4B2D062C2A11C0E100DE1F49 /* Networking in Frameworks */ = {isa = PBXBuildFile; productRef = 4B2D062B2A11C0E100DE1F49 /* Networking */; }; | |||
4B2D062D2A11C12300DE1F49 /* Logging.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85799C1725DEBB3F0007EC87 /* Logging.swift */; }; |
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 don't want Logging.swift in system extensions, so I removed it from our tunnel and proxy sysexes.
case .begin: | ||
PixelKit.fire( | ||
NetworkProtectionPixelEvent.networkProtectionTunnelStopAttempt, | ||
frequency: .standard, |
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.
Daily attempts are useless, unfortunately.
// | ||
// Ref: https://app.asana.com/0/72649045549333/1204668639086684/f | ||
// | ||
exit(EXIT_SUCCESS) |
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 found that after our recent changes, stopping the VPN works best when this is removed. Sometimes it was taking a while to stop with this still here.
I'll be testing this in macOS 11 on the intel mac mini shortly.
@@ -27,7 +27,7 @@ import PixelKit | |||
|
|||
final class MacTransparentProxyProvider: TransparentProxyProvider { | |||
|
|||
static var vpnProxyLogger = Logger(subsystem: OSLog.subsystem, category: "VPN Proxy") | |||
static var vpnProxyLogger = Logger(subsystem: Bundle.main.bundleIdentifier ?? "DuckDuckGo", category: "VPN Proxy") |
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.
Just to avoid the dependency with Logging.swift
.
Task/Issue URL: https://app.asana.com/0/414235014887631/1207099030609186/f iOS PR:duckduckgo/iOS#2785 macOS PR: duckduckgo/macos-browser#2694 ## Description Adds pixels to track VPN wake and stop attempts.
Task/Issue URL: https://app.asana.com/0/414235014887631/1207099030609186/f macOS PR:duckduckgo/macos-browser#2694 BSK PR: duckduckgo/BrowserServicesKit#797 ## Description Adds pixels to track VPN wake and stop attempts.
…utdown # By Dax the Duck (9) and others # Via GitHub (6) and others * main: (47 commits) Update BSK to 141.1.1 (#2713) macOS: VPN Metadata Improvements (#2704) duck page suggestions (#2666) macOS: Add pixels to track VPN wake and stop attempts (#2694) Trusted url indicator (#2665) remove Tab.TabContent.url (#2647) Bump version to 1.85.0 (176) Update release automation to support Privacy Pro section in release notes (#2710) Fix for VPN stop issues. (#2689) Hard-codes the VPN waitlist flags to ON (#2709) Add subscription status to the macOS metadata (#2680) Bump version to 1.85.0 (175) Call finish in the correct place (#2702) Fix layout issue on DBP (#2700) Update autoconsent to v10.6.1 (#2618) Make Clear All History shortcut available without entering Main Menu (#2682) Fix DataBrokerProtectionProcessor.swift lint Fix SwiftLint Add parameter allowed encoding to error descriptions (#2691) Remove debug flags ... # Conflicts: # DuckDuckGo.xcodeproj/project.pbxproj # DuckDuckGo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
Task/Issue URL: https://app.asana.com/0/414235014887631/1207099030609186/f
iOS PR:duckduckgo/iOS#2785
BSK PR: duckduckgo/BrowserServicesKit#797
Description
Adds pixels to track VPN wake and stop attempts.
Testing
Internal references:
Pull Request Review Checklist
Software Engineering Expectations
Technical Design Template
Pull Request Documentation