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

Logs are never uploaded on real Apple Watch device #2004

Closed
jfiser-paylocity opened this issue Aug 20, 2024 · 2 comments
Closed

Logs are never uploaded on real Apple Watch device #2004

jfiser-paylocity opened this issue Aug 20, 2024 · 2 comments
Labels
bug Something isn't working pending-release

Comments

@jfiser-paylocity
Copy link
Contributor

Describe the bug

When datadog is used on a real Apple Watch device, no logs are ever uploaded to API. The issue is that NWPathMonitor is used to evaluate network reachability. While this works flawlessly on a simulator (as it reads macOS status instead), it always reports as unreachable on a real device. That leads to DataUploadConditions blocking every data upload attempt.

Reproduction steps

Integrate datadog in any watchOS application and run on a real Apple Watch device.

SDK logs

No visible logs in the watchOS application.

Expected behavior

Logs are eventually uploaded to API and visible on Datadog dashboard

Affected SDK versions

2.15.0

Latest working SDK version

none

Did you confirm if the latest SDK version fixes the bug?

Yes

Integration Methods

SPM

Xcode Version

15.4

Swift Version

5.10

MacOS Version

Sonoma 14.6.1

Deployment Target

watchOS 9.0

Device Information

No response

Other relevant information

No response

@jfiser-paylocity jfiser-paylocity added the bug Something isn't working label Aug 20, 2024
@maciejburda
Copy link
Member

Thank you for reporting the issue @jfiser-paylocity

Apparently there're some issues with NWPathMonitor on watchOS.

I tried looking for some simple mitigation, but unfortunately could make it work in the timely manner. We'll need to discuss this internally with the team and see how we can proceed.

We'll keep the GH Issue posted.

@mariedm
Copy link
Member

mariedm commented Sep 11, 2024

Hello @jfiser-paylocity 👋

We released version 2.17.0, which includes #2005. Thanks a lot for your contribution! 🙌 🚀

@mariedm mariedm closed this as completed Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending-release
Projects
None yet
Development

No branches or pull requests

4 participants