Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ - (BOOL)concurrentRootEnabled
return nullptr;
}

- (BOOL) shouldStartSentry {
NSArray<NSString*>* arguments = [[NSProcessInfo processInfo] arguments];
return ![arguments containsObject:@"--sentry-disable-native-start"];
- (BOOL)shouldStartSentry
{
NSArray<NSString *> *arguments = [[NSProcessInfo processInfo] arguments];
return ![arguments containsObject:@"--sentry-disable-native-start"];
}

@end
2 changes: 0 additions & 2 deletions samples/react-native/sentry.options.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"attachScreenshot": true,
"attachViewHierarchy": true,
"enableCaptureFailedRequests": true,
"_release": "[email protected]+1",
"_dist": 1,
"profilesSampleRate": 1.0,
"replaysSessionSampleRate": 1.0,
"replaysOnErrorSampleRate": 1.0,
Expand Down
29 changes: 0 additions & 29 deletions samples/react-native/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import Animated, {
// Import the Sentry React Native SDK
import * as Sentry from '@sentry/react-native';

import { SENTRY_INTERNAL_DSN } from './dsn';
import ErrorsScreen from './Screens/ErrorsScreen';
import PerformanceScreen from './Screens/PerformanceScreen';
import TrackerScreen from './Screens/TrackerScreen';
Expand Down Expand Up @@ -55,10 +54,6 @@ const reactNavigationIntegration = Sentry.reactNavigationIntegration({
});

Sentry.init({
// Replace the example DSN below with your own DSN:
dsn: SENTRY_INTERNAL_DSN,
debug: true,
environment: 'dev',
beforeSend: (event: ErrorEvent) => {
logWithoutTracing('Event beforeSend:', event.event_id);
return event;
Expand All @@ -74,7 +69,6 @@ Sentry.init({
didCallNativeInit,
);
},
enableUserInteractionTracing: true,
integrations(integrations) {
integrations.push(
reactNavigationIntegration,
Expand Down Expand Up @@ -110,30 +104,7 @@ Sentry.init({
);
return integrations.filter(i => i.name !== 'Dedupe');
},
enableAutoSessionTracking: true,
// For testing, session close when 5 seconds (instead of the default 30) in the background.
sessionTrackingIntervalMillis: 30000,
// This will capture ALL TRACES and likely use up all your quota
enableTracing: true,
tracesSampleRate: 1.0,
tracePropagationTargets: ['localhost', /^\//, /^https:\/\//, /^http:\/\//],
attachStacktrace: true,
// Attach screenshots to events.
attachScreenshot: true,
// Attach view hierarchy to events.
attachViewHierarchy: true,
// Enables capture failed requests in JS and native.
enableCaptureFailedRequests: true,
// Sets the `release` and `dist` on Sentry events. Make sure this matches EXACTLY with the values on your sourcemaps
// otherwise they will not work.
// release: '[email protected]+1',
// dist: `1`,
profilesSampleRate: 1.0,
replaysSessionSampleRate: 1.0,
replaysOnErrorSampleRate: 1.0,
spotlight: true,
// This should be disabled when manually initializing the native SDK
// Note that options from JS are not passed to the native SDKs when initialized manually
// autoInitializeNativeSdk: true,
});

Expand Down
8 changes: 0 additions & 8 deletions samples/react-native/src/dsn.ts

This file was deleted.

Loading