Avoid URL.formatted() method (#408)

This commit is contained in:
Nikolay Edigaryev 2023-02-08 15:52:01 +04:00 committed by GitHub
parent d65f530bcb
commit b566d07bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);