import {Fragment} from 'react'; import ExternalLink from 'sentry/components/links/externalLink'; import List from 'sentry/components/list'; import ListItem from 'sentry/components/list/listItem'; 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 export const steps = ({ dsn, }: { dsn?: string; } = {}): LayoutProps['steps'] => [ { type: StepType.INSTALL, description: (
{tct('Install the [strong:NuGet] package:', { strong: , })}
), configurations: [ { language: 'shell', description: t('Package Manager:'), code: 'Install-Package Sentry.Google.Cloud.Functions -Version 3.34.0', }, { language: 'shell', description: t('Or .NET Core CLI:'), code: 'dotnet add package Sentry.Google.Cloud.Functions -v 3.34.0', }, { language: 'xml', description: t('Or, manually add the Sentry dependency into your csproj file:'), code: `
{tct(
'Then, add Sentry to the [functionCode:Function] class through [functionStartupCode:FunctionsStartup]:',
{
functionCode: ,
functionStartupCode:
,
}
)}
{tct(
"Additionally, you'll need to set up your [sentryCode:Sentry] settings on [appsettingsCode:appsettings.json]:",
{sentryCode: , appsettingsCode:
}
)}
,
}
)}