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 {t, tct} from 'sentry/locale'; // Configuration Start const introduction = (
{tct('The Sanic integration adds support for the [link:Sanic Web Framework].', {
link:
{tct(
'Install [sentrySdkCode:sentry-sdk] from PyPI with the [sentrySanicCode:sanic] extra:',
{
sentrySdkCode: ,
sentrySanicCode:
,
}
)}
{tct(
"f you're on Python 3.6, you also need the [code:aiocontextvars] package:",
{
code: ,
}
)}
{tct(
'If you have the [codeSanic:sanic] package in your dependencies, the Sanic integration will be enabled automatically when you initialize the Sentry SDK. Initialize the Sentry SDK before your app has been initialized:',
{
codeSanic: ,
}
)}
{tct(
'When you point your browser to [link:http://localhost:8000/] an error will be sent to Sentry.',
{
link: