Skip to content

Commit d069d70

Browse files
authored
fix: Use correct parsing for stackframes (#6908)
* fix: Use correct parsing for stackframes * Simplify * Testing * more * Updates * Fixes * Update changelog * PR comments * PR comments
1 parent 3111a51 commit d069d70

File tree

14 files changed

+270
-408
lines changed

14 files changed

+270
-408
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- The transport now correctly discard envelopes on 4xx and 5xx responses and records client reports `send_error` (#6618) This also fixes edge cases in which the SDK kept retrying sending a faulty envelope until the offline cache overflowed.
88
- Change default attributes of Logs to only include user attributes when `options.sendDefaultPii = true` (#7055)
99
- Rename log attribute `sentry.trace.parent_span_id` to `span_id` (#7055)
10+
- Fixes stacktraces for MetricKit events (#6908)
1011

1112
## 9.1.0
1213

Sentry.xcodeproj/project.pbxproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,8 @@
11021102
FA914E592ECF968500C54BDD /* UserFeedbackIntegration.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA914E532ECF968000C54BDD /* UserFeedbackIntegration.swift */; };
11031103
FA914E5B2ECF988900C54BDD /* Integrations.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA914E5A2ECF988700C54BDD /* Integrations.swift */; };
11041104
FA914E6D2ECFD7D800C54BDD /* SentryFeedbackAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA914E6C2ECFD7D800C54BDD /* SentryFeedbackAPI.swift */; };
1105+
FA914E9B2ED61AA800C54BDD /* SentryFormatterSwift.h in Headers */ = {isa = PBXBuildFile; fileRef = FA914E952ED61AA300C54BDD /* SentryFormatterSwift.h */; };
1106+
FA914E9E2ED61BA800C54BDD /* SentryFormatterSwift.m in Sources */ = {isa = PBXBuildFile; fileRef = FA914E9C2ED61AB900C54BDD /* SentryFormatterSwift.m */; };
11051107
FA94E6912E6B92C100576666 /* SentryClientReport.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA94E68B2E6B92BE00576666 /* SentryClientReport.swift */; };
11061108
FA94E6B22E6D265800576666 /* SentryEnvelope.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA94E6B12E6D265500576666 /* SentryEnvelope.swift */; };
11071109
FA94E7242E6F339400576666 /* SentryEnvelopeItemType.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA94E7232E6F32FA00576666 /* SentryEnvelopeItemType.swift */; };
@@ -1156,6 +1158,8 @@
11561158
FAEEC0522E75E55F00E79CA9 /* SentrySerializationSwift.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAEEC04C2E75E55A00E79CA9 /* SentrySerializationSwift.swift */; };
11571159
FAEFA12F2E4FAE1900C431D9 /* SentrySDKSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAEFA1292E4FAE1700C431D9 /* SentrySDKSettings.swift */; };
11581160
FAF0F3D02EA7DD0D00E44E9B /* SentryANRTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF0F3CA2EA7DD0700E44E9B /* SentryANRTrackerTests.swift */; };
1161+
FAFA358D2EF2FD2A006B145F /* SentryMXCallStackTree+Parsing.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAFA35872EF2FD24006B145F /* SentryMXCallStackTree+Parsing.swift */; };
1162+
FAFA358F2EF2FD8F006B145F /* MXSample.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAFA358E2EF2FD8C006B145F /* MXSample.swift */; };
11591163
/* End PBXBuildFile section */
11601164

11611165
/* Begin PBXContainerItemProxy section */
@@ -2487,6 +2491,8 @@
24872491
FA914E532ECF968000C54BDD /* UserFeedbackIntegration.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserFeedbackIntegration.swift; sourceTree = "<group>"; };
24882492
FA914E5A2ECF988700C54BDD /* Integrations.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Integrations.swift; sourceTree = "<group>"; };
24892493
FA914E6C2ECFD7D800C54BDD /* SentryFeedbackAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryFeedbackAPI.swift; sourceTree = "<group>"; };
2494+
FA914E952ED61AA300C54BDD /* SentryFormatterSwift.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = SentryFormatterSwift.h; path = include/SentryFormatterSwift.h; sourceTree = "<group>"; };
2495+
FA914E9C2ED61AB900C54BDD /* SentryFormatterSwift.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryFormatterSwift.m; sourceTree = "<group>"; };
24902496
FA94E68B2E6B92BE00576666 /* SentryClientReport.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryClientReport.swift; sourceTree = "<group>"; };
24912497
FA94E6B12E6D265500576666 /* SentryEnvelope.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryEnvelope.swift; sourceTree = "<group>"; };
24922498
FA94E7232E6F32FA00576666 /* SentryEnvelopeItemType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryEnvelopeItemType.swift; sourceTree = "<group>"; };
@@ -2541,6 +2547,8 @@
25412547
FAEEC04C2E75E55A00E79CA9 /* SentrySerializationSwift.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySerializationSwift.swift; sourceTree = "<group>"; };
25422548
FAEFA1292E4FAE1700C431D9 /* SentrySDKSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentrySDKSettings.swift; sourceTree = "<group>"; };
25432549
FAF0F3CA2EA7DD0700E44E9B /* SentryANRTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryANRTrackerTests.swift; sourceTree = "<group>"; };
2550+
FAFA35872EF2FD24006B145F /* SentryMXCallStackTree+Parsing.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SentryMXCallStackTree+Parsing.swift"; sourceTree = "<group>"; };
2551+
FAFA358E2EF2FD8C006B145F /* MXSample.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MXSample.swift; sourceTree = "<group>"; };
25442552
/* End PBXFileReference section */
25452553

25462554
/* Begin PBXFrameworksBuildPhase section */
@@ -2956,6 +2964,8 @@
29562964
639889D51EDF10BE00EA7442 /* Helper */ = {
29572965
isa = PBXGroup;
29582966
children = (
2967+
FA914E952ED61AA300C54BDD /* SentryFormatterSwift.h */,
2968+
FA914E9C2ED61AB900C54BDD /* SentryFormatterSwift.m */,
29592969
FA4FB8252ECB7D27008C9EC3 /* SentryLevel.h */,
29602970
63AA76951EB9C1C200D153DE /* SentryDefines.h */,
29612971
627E7588299F6FE40085504D /* SentryInternalDefines.h */,
@@ -5042,6 +5052,8 @@
50425052
isa = PBXGroup;
50435053
children = (
50445054
FA67DCD82DDBD4EA00896B02 /* SentryMXCallStackTree.swift */,
5055+
FAFA35872EF2FD24006B145F /* SentryMXCallStackTree+Parsing.swift */,
5056+
FAFA358E2EF2FD8C006B145F /* MXSample.swift */,
50455057
FA67DCD92DDBD4EA00896B02 /* SentryMXManager.swift */,
50465058
);
50475059
path = MetricKit;
@@ -5283,6 +5295,7 @@
52835295
FAB359982E05D7E90083D5E3 /* SentryEventSwiftHelper.h in Headers */,
52845296
7B31C291277B04A000337126 /* SentryCrashPlatformSpecificDefines.h in Headers */,
52855297
D452FC732DDB553100AFF56F /* SentryWatchdogTerminationBreadcrumbProcessor.h in Headers */,
5298+
FA914E9B2ED61AA800C54BDD /* SentryFormatterSwift.h in Headers */,
52865299
D456B4382D706BFE007068CB /* SentrySpanDataKey.h in Headers */,
52875300
7B77BE3527EC8445003C9020 /* SentryDiscardReasonMapper.h in Headers */,
52885301
7B610D602512390E00B0B5D9 /* SentrySDK+Private.h in Headers */,
@@ -5871,6 +5884,7 @@
58715884
D48891CC2E98F22A00212823 /* SentryInfoPlistWrapperProvider.swift in Sources */,
58725885
F458D1172E186DF20028273E /* SentryScopePersistentStore+Fingerprint.swift in Sources */,
58735886
D8CB7417294724CC00A5F964 /* SentryEnvelopeAttachmentHeader.m in Sources */,
5887+
FA914E9E2ED61BA800C54BDD /* SentryFormatterSwift.m in Sources */,
58745888
D84793262788737D00BE8E99 /* SentryByteCountFormatter.m in Sources */,
58755889
FAEFA12F2E4FAE1900C431D9 /* SentrySDKSettings.swift in Sources */,
58765890
63AA769E1EB9C57A00D153DE /* SentryError.mm in Sources */,
@@ -5924,6 +5938,7 @@
59245938
7D082B8323C628790029866B /* SentryMeta.m in Sources */,
59255939
D8CAC02F2BA0663E00E38F34 /* SentryVideoInfo.swift in Sources */,
59265940
FAAB95CD2EA18B2E0030A2DB /* SentryDependencyContainer.swift in Sources */,
5941+
FAFA358D2EF2FD2A006B145F /* SentryMXCallStackTree+Parsing.swift in Sources */,
59275942
63FE710720DA4C1000CDBAE8 /* SentryCrashStackCursor_SelfThread.m in Sources */,
59285943
63FE711120DA4C1000CDBAE8 /* SentryCrashDebug.c in Sources */,
59295944
7B883F49253D714C00879E62 /* SentryCrashUUIDConversion.c in Sources */,
@@ -6018,6 +6033,7 @@
60186033
FA67DD0F2DDBD4EA00896B02 /* SentryViewControllerBreadcrumbTracking.swift in Sources */,
60196034
FA67DD102DDBD4EA00896B02 /* StringExtensions.swift in Sources */,
60206035
FA67DD112DDBD4EA00896B02 /* SentryANRType.swift in Sources */,
6036+
FAFA358F2EF2FD8F006B145F /* MXSample.swift in Sources */,
60216037
FAAB95D82EA1E23F0030A2DB /* SentryExtraContextProvider.swift in Sources */,
60226038
FA67DD122DDBD4EA00896B02 /* Locks.swift in Sources */,
60236039
62CB19252E77F8FD00AF5DA2 /* SentryDispatchSourceWrapper.swift in Sources */,
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#import "SentryFormatter.h"
2+
3+
NSString *
4+
sentry_formatHexAddressUInt64Swift(uint64_t value)
5+
{
6+
return sentry_formatHexAddressUInt64(value);
7+
}

0 commit comments

Comments
 (0)