import {Fragment} from 'react'; import styled from '@emotion/styled'; import Alert from 'sentry/components/alert'; import ExternalLink from 'sentry/components/links/externalLink'; import {Layout, LayoutProps} from 'sentry/components/onboarding/gettingStartedDoc/layout'; import {ModuleProps} from 'sentry/components/onboarding/gettingStartedDoc/sdkDocumentation'; import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step'; import {ProductSolution} from 'sentry/components/onboarding/productSelection'; import {t, tct} from 'sentry/locale'; import {space} from 'sentry/styles/space'; // Configuration Start const profilingConfiguration = ` # Set profiles_sample_rate to 1.0 to profile 100% # of sampled transactions. # We recommend adjusting this value in production. profiles_sample_rate=1.0,`; const performanceConfiguration = ` # Set traces_sample_rate to 1.0 to capture 100% # of transactions for performance monitoring. # We recommend adjusting this value in production. traces_sample_rate=1.0,`; export const steps = ({ dsn, sentryInitContent, }: { dsn: string; sentryInitContent: string; }): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: (
{tct('Install our Python SDK using [code:pip]:', {code: })}
{tct("Check out Sentry's [link:GCP sample apps] for detailed examples.", {
link: (
{tct(
'The timeout warning reports an issue when the function execution time is near the [link:configured timeout].',
{
link: (
{tct(
'To enable the warning, update the SDK initialization to set [codeTimeout:timeout_warning] to [codeStatus:true]:',
{codeTimeout: , codeStatus:
}
)}