From 5393bc419743648ce4d6c088f90bc0f8aa0f9c38 Mon Sep 17 00:00:00 2001 From: Siarhei Bakatsiuk Date: Fri, 24 Jul 2026 12:16:43 +0300 Subject: [PATCH] Sample: cover the full Catalyst-usable surface DatadogNet.WebViewTracking.Mac joins the sample with a tracked WKWebView page - web view tracking works on Catalyst exactly as on iOS - and a button makes an instrumented NSUrlSession request through the generic Enable(). Mirrors the iOS sample minus Session Replay, which records nothing on Catalyst and stays deliberately out. Release notes extended accordingly. Co-Authored-By: Claude Fable 5 --- docs/release-notes/3.14.0.2.md | 7 ++ .../DatadogNetExample.csproj | 1 + samples/DatadogNet.Mac.Example/MainPage.xaml | 14 ++++ .../DatadogNet.Mac.Example/MainPage.xaml.cs | 51 +++++++++++++ samples/DatadogNet.Mac.Example/WebViewPage.cs | 76 +++++++++++++++++++ 5 files changed, 149 insertions(+) create mode 100644 samples/DatadogNet.Mac.Example/WebViewPage.cs diff --git a/docs/release-notes/3.14.0.2.md b/docs/release-notes/3.14.0.2.md index 8c23c78..29367c6 100644 --- a/docs/release-notes/3.14.0.2.md +++ b/docs/release-notes/3.14.0.2.md @@ -46,6 +46,13 @@ and the trim/AOT analyzers are on with the surface analysing clean. `BuildNugets.sh`) no longer carries that repository's comments verbatim: each file now says what is true *here* and marks itself as a keep-in-sync copy. +## Sample + +`DatadogNet.WebViewTracking.Mac` joins the sample with a tracked `WKWebView` page — web view +tracking works on Catalyst exactly as on iOS — and a button makes an instrumented `NSUrlSession` +request through the generic `Enable()`. The sample now exercises every package with a +callable API that works on Catalyst. + ## net8 sunset Stated policy, so the decision does not persist by inertia: the `net8.0-maccatalyst18.0` head is diff --git a/samples/DatadogNet.Mac.Example/DatadogNetExample.csproj b/samples/DatadogNet.Mac.Example/DatadogNetExample.csproj index 8af6d93..580e0b4 100644 --- a/samples/DatadogNet.Mac.Example/DatadogNetExample.csproj +++ b/samples/DatadogNet.Mac.Example/DatadogNetExample.csproj @@ -58,6 +58,7 @@ + diff --git a/samples/DatadogNet.Mac.Example/MainPage.xaml b/samples/DatadogNet.Mac.Example/MainPage.xaml index c93cb1c..27321ad 100644 --- a/samples/DatadogNet.Mac.Example/MainPage.xaml +++ b/samples/DatadogNet.Mac.Example/MainPage.xaml @@ -53,6 +53,20 @@ +