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 type {
Docs,
DocsParams,
OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {CrashReportWebApiOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/feedbackOnboarding';
import {t, tct} from 'sentry/locale';
type Params = DocsParams;
const getCurlSnippet = (params: Params) => `
curl -X POST \
'${params.dsn}' \
-F upload_file_minidump=@mini.dmp`;
const onboarding: OnboardingConfig = {
install: params => [
{
title: t('Creating and Uploading Minidumps'),
description: (
{t(
'Depending on your operating system and programming language, there are various alternatives to create minidumps and upload them to Sentry. See the following resources for libraries that support generating minidump crash reports:'
)}
Native SDK
Google Breakpad
Google Crashpad
),
configurations: [
{
description: tct(
'If you have already integrated a library that generates minidumps and would just like to upload them to Sentry, you need to configure the [minidumpEndpointUrlItalic:Minidump Endpoint URL], which can be found at [projectSettingsItalic:Project Settings > Client Keys (DSN)]. This endpoint expects a [postCode:POST] request with the minidump in the [uploadFileMinidumpCode:upload_file_minidump] field:',
{
postCode:
,
uploadFileMinidumpCode:
,
minidumpEndpointUrlItalic: ,
projectSettingsItalic: ,
}
),
language: 'bash',
code: getCurlSnippet(params),
},
],
additionalInfo: tct(
'To send additional information, add more form fields to this request. For a full description of fields accepted by Sentry, see [passingAdditionalDataLink:Passing Additional Data].',
{
passingAdditionalDataLink: (
),
}
),
},
],
configure: () => [],
verify: () => [],
};
const docs: Docs = {
onboarding,
crashReportOnboarding: CrashReportWebApiOnboarding,
};
export default docs;