From b566d07bc4f9b7f8c74c901439e4368b3dfba010 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Wed, 8 Feb 2023 15:52:01 +0400 Subject: [PATCH] Avoid URL.formatted() method (#408) --- Sources/tart/Commands/Prune.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/Commands/Prune.swift b/Sources/tart/Commands/Prune.swift index e52ce52..138bd9e 100644 --- a/Sources/tart/Commands/Prune.swift +++ b/Sources/tart/Commands/Prune.swift @@ -101,7 +101,7 @@ struct Prune: AsyncParsableCommand { cacheReclaimedBytes += try prunable.sizeBytes() try prunable.delete() - try SentrySDK.span?.setExtra(value: prunable.sizeBytes(), key: prunable.url.formatted()); + try SentrySDK.span?.setExtra(value: prunable.sizeBytes(), key: prunable.url.path); } SentrySDK.span?.setMeasurement(name: "gc_disk_reclaimed", value: cacheReclaimedBytes as NSNumber, unit: MeasurementUnitInformation.byte);