From db2e5bb1e17dfaaae8c26bab1bfe29ee14fb2488 Mon Sep 17 00:00:00 2001 From: Makisuo Date: Thu, 20 Aug 2026 12:36:35 +0200 Subject: [PATCH] fix(ios): pin the SDK build that reports where a request's time went MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit maple-swift 0.2.1 records URLSession's connection phases on client spans. The mobile screens are slow and maple-api is not the reason: joining 241 iOS client spans to their own server span in the same trace puts 404ms p50 / 1148ms p95 *before* the server and 97ms / 759ms *after* it, against 233ms / 857ms of actual server work. In the worst trace the app held two completed responses for twelve seconds — both ending at the same instant, long after the API had answered in ~220ms. Nothing in the trace could say what that time was, because the SDK's relay delegate built URLSessionTaskMetrics and dropped them. 0.2.1 keeps them, so the gap resolves into DNS, TLS, queueing, TTFB and body transfer instead of a guess. No app-side behaviour changes here — this is the instrument, and the fix follows the numbers it produces. --- apps/ios/Packages/MapleAPI/Package.resolved | 4 ++-- apps/ios/project.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/ios/Packages/MapleAPI/Package.resolved b/apps/ios/Packages/MapleAPI/Package.resolved index dcb9ddde2..e4754794d 100644 --- a/apps/ios/Packages/MapleAPI/Package.resolved +++ b/apps/ios/Packages/MapleAPI/Package.resolved @@ -15,8 +15,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/MapleTechLabs/maple-swift", "state" : { - "revision" : "84d33eddbd7334843ea6455cfd1f65353e44afee", - "version" : "0.2.0" + "revision" : "96e44a0e136fa87339131a45363c2427fa804ed7", + "version" : "0.2.1" } }, { diff --git a/apps/ios/project.yml b/apps/ios/project.yml index 9f10a89ab..6e56230f1 100644 --- a/apps/ios/project.yml +++ b/apps/ios/project.yml @@ -39,7 +39,7 @@ packages: # target called Maple. MapleSwift: url: https://github.com/MapleTechLabs/maple-swift - exactVersion: 0.2.0 + exactVersion: 0.2.1 settings: base: