Skip to content

Commit e5773c1

Browse files
authored
fix: Make scope span readonly in V9 (#6526)
1 parent 707c222 commit e5773c1

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

CHANGELOG-v9.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ Makes app hang tracking V2 the default and removes the option to enable/disable
77
Removes public SentrySerializable conformance from many public models (#5636, #5840, #5982)
88
Removes `integrations` property from `SentryOptions` (#5749)
99
Makes `SentryEventDecodable` internal (#5808)
10-
The `span` property on `SentryScope` is now readonly (#5866)

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
- Removes deprecated `setExtraValue` from SentrySpan (#5864)
1212
- Removes deprecated getStoreEndpoint (#5591)
1313
- Removes deprecated useSpan function (#5591)
14+
- The `span` property on `SentryScope` is now readonly (#5866)
1415
- Removes segment property on SentryUser, SentryBaggage, and SentryTraceContext (#5638)
1516
- Removes deprecated TraceContext initializers (#6348)
1617
- Removes deprecated user feedback API, this is replaced with the new feedback API (#5591)

Sources/Sentry/Public/SentryScope.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ NS_SWIFT_NAME(Scope)
3333
* Returns current Span or Transaction.
3434
* @return current Span or Transaction or null if transaction has not been set.
3535
*/
36-
#if SDK_V9
3736
@property (nullable, nonatomic, readonly, strong) id<SentrySpan> span;
38-
#else
39-
@property (nullable, nonatomic, strong) id<SentrySpan> span;
40-
#endif // SDK_V9
4137

4238
/**
4339
* The id of current session replay.

Sources/Sentry/include/SentryScope+Private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
1313
@interface SentryScope ()
1414

1515
@property (atomic, copy, nullable) NSString *environmentString;
16+
@property (nullable, nonatomic, strong) id<SentrySpan> span;
1617

1718
@property (atomic, strong, readonly) NSArray<SentryAttachment *> *attachments;
1819

0 commit comments

Comments
 (0)