Skip to content

Commit a532b18

Browse files
internal: Remove loading integrations names from event.extra (#4627)
1 parent a401e33 commit a532b18

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
- `SentrySdkInfo.packages` should be an array (#4626)
1212

13+
### Internal
14+
15+
- Remove loading `integrations` names from `event.extra` (#4627)
16+
1317
## 8.42.0-beta.2
1418

1519
### Fixes

Sources/Sentry/SentryClient.m

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -880,16 +880,14 @@ - (void)setSdk:(SentryEvent *)event
880880
return;
881881
}
882882

883-
id integrations = event.extra[@"__sentry_sdk_integrations"];
884-
if (!integrations) {
885-
integrations = [SentrySDK.currentHub trimmedInstalledIntegrationNames];
883+
NSMutableArray<NSString *> *integrations =
884+
[SentrySDK.currentHub trimmedInstalledIntegrationNames];
886885

887886
#if SENTRY_HAS_UIKIT
888-
if (self.options.enablePreWarmedAppStartTracing) {
889-
[integrations addObject:@"PreWarmedAppStartTracing"];
890-
}
891-
#endif
887+
if (self.options.enablePreWarmedAppStartTracing) {
888+
[integrations addObject:@"PreWarmedAppStartTracing"];
892889
}
890+
#endif
893891

894892
NSArray<NSString *> *features =
895893
[SentryEnabledFeaturesBuilder getEnabledFeaturesWithOptions:self.options];

0 commit comments

Comments
 (0)