File tree Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Expand file tree Collapse file tree 1 file changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,12 @@ - (BOOL)shouldIgnoreError:(NSString *)message
184
184
}
185
185
186
186
for (NSString *str in _ignoreErrorPatternsStr) {
187
- if ([message containsString: str]) {
187
+ if ([message containsString: str])
188
+ {
188
189
return YES ;
189
190
}
190
191
}
191
-
192
+
192
193
for (NSRegularExpression *regex in _ignoreErrorPatternsRegex) {
193
194
NSRange range = NSMakeRange (0 , message.length );
194
195
if ([regex firstMatchInString: message options: 0 range: range]) {
@@ -236,21 +237,7 @@ - (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
236
237
// set themselves.
237
238
[mutableOptions removeObjectForKey: @" tracesSampleRate" ];
238
239
[mutableOptions removeObjectForKey: @" tracesSampler" ];
239
- [mutableOptions removeObjectForKey: @" enableTracing" ];
240
-
241
- #if SENTRY_TARGET_REPLAY_SUPPORTED
242
- [RNSentryReplay updateOptions: mutableOptions];
243
- #endif
244
-
245
- SentryOptions *sentryOptions = [[SentryOptions alloc ] initWithDict: mutableOptions
246
- didFailWithError: errorPointer];
247
- if (*errorPointer != nil ) {
248
- return nil ;
249
- }
250
-
251
- // Exclude Dev Server and Sentry Dsn request from Breadcrumbs
252
- NSString *dsn = [self getURLFromDSN: [mutableOptions valueForKey: @" dsn" ]];
253
- NSString *devServerUrl = [mutableOptions valueForKey: @" devServerUrl" ];
240
+ [mutableOptions removeObjectForKey: @lz/v7/ignore-errorsions valueForKey: @" devServerUrl" ];
254
241
sentryOptions.beforeBreadcrumb
255
242
= ^SentryBreadcrumb *_Nullable (SentryBreadcrumb *_Nonnull breadcrumb)
256
243
{
You can’t perform that action at this time.
0 commit comments