diff --git a/src/apple/templates.ts b/src/apple/templates.ts index 119d9493..d1e6c924 100644 --- a/src/apple/templates.ts +++ b/src/apple/templates.ts @@ -8,9 +8,8 @@ export function getRunScriptTemplate( const includeHomebrew = includeHomebrewPath ? '\\nif [[ "$(uname -m)" == arm64 ]]; then\\nexport PATH="/opt/homebrew/bin:$PATH"\\nfi' : ''; - return `# This script is responsable to upload debug symbols and source context for Sentry.${includeHomebrew}\\nif which sentry-cli >/dev/null; then\\nexport SENTRY_ORG=${orgSlug}\\nexport SENTRY_PROJECT=${projectSlug}\\nERROR=$(sentry-cli debug-files upload ${ - uploadSource ? '--include-sources ' : '' - }"$DWARF_DSYM_FOLDER_PATH" 2>&1 >/dev/null)\\nif [ ! $? -eq 0 ]; then\\necho "warning: sentry-cli - $ERROR"\\nfi\\nelse\\necho "warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases"\\nfi\\n`; + return `# This script is responsable to upload debug symbols and source context for Sentry.${includeHomebrew}\\nif which sentry-cli >/dev/null; then\\nexport SENTRY_ORG=${orgSlug}\\nexport SENTRY_PROJECT=${projectSlug}\\nERROR=$(sentry-cli debug-files upload ${uploadSource ? '--include-sources ' : '' + }"$DWARF_DSYM_FOLDER_PATH" 2>&1 >/dev/null)\\nif [ ! $? -eq 0 ]; then\\necho "warning: sentry-cli - $ERROR"\\nfi\\nelse\\necho "warning: sentry-cli not installed, download from https://github.com/getsentry/sentry-cli/releases"\\nfi\\n`; } export const scriptInputPath = @@ -20,7 +19,13 @@ export function getSwiftSnippet(dsn: string): string { return ` SentrySDK.start { options in options.dsn = "${dsn}" options.debug = true // Enabled debug when first installing is always helpful - options.enableTracing = true + // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + options.tracesSampleRate = 1.0 + + // Sample rate for profiling, applied on top of TracesSampleRate. + // We recommend adjusting this value in production. + options.profilesSampleRate = 1.0 // Uncomment the following lines to add more data to your events // options.attachScreenshot = true // This adds a screenshot to the error events @@ -34,7 +39,13 @@ export function getObjcSnippet(dsn: string): string { return ` [SentrySDK startWithConfigureOptions:^(SentryOptions * options) { options.dsn = @"${dsn}"; options.debug = YES; // Enabled debug when first installing is always helpful - options.enableTracing = YES; + // Set tracesSampleRate to 1.0 to capture 100% of transactions for performance monitoring. + // We recommend adjusting this value in production. + options.tracesSampleRate = @1.0; + + // Sample rate for profiling, applied on top of TracesSampleRate. + // We recommend adjusting this value in production. + options.profilesSampleRate = @1.0; //Uncomment the following lines to add more data to your events //options.attachScreenshot = YES; //This will add a screenshot to the error events