minidump.tsx 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import {Fragment} from 'react';
  2. import ExternalLink from 'sentry/components/links/externalLink';
  3. import List from 'sentry/components/list';
  4. import ListItem from 'sentry/components/list/listItem';
  5. import {
  6. Docs,
  7. DocsParams,
  8. OnboardingConfig,
  9. } from 'sentry/components/onboarding/gettingStartedDoc/types';
  10. import {t, tct} from 'sentry/locale';
  11. type Params = DocsParams;
  12. const getCurlSnippet = (params: Params) => `
  13. curl -X POST \
  14. '${params.dsn}' \
  15. -F upload_file_minidump=@mini.dmp`;
  16. const onboarding: OnboardingConfig = {
  17. install: params => [
  18. {
  19. title: t('Creating and Uploading Minidumps'),
  20. description: (
  21. <Fragment>
  22. {t(
  23. '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:'
  24. )}
  25. <List symbol="bullet">
  26. <ListItem>
  27. <ExternalLink href="https://docs.sentry.io/platforms/native/">
  28. Native SDK
  29. </ExternalLink>
  30. </ListItem>
  31. <ListItem>
  32. <ExternalLink href="https://docs.sentry.io/platforms/native/guides/breakpad/">
  33. Google Breakpad
  34. </ExternalLink>
  35. </ListItem>
  36. <ListItem>
  37. <ExternalLink href="https://docs.sentry.io/platforms/native/guides/crashpad/">
  38. Google Crashpad
  39. </ExternalLink>
  40. </ListItem>
  41. </List>
  42. </Fragment>
  43. ),
  44. configurations: [
  45. {
  46. description: tct(
  47. '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:',
  48. {
  49. postCode: <code />,
  50. uploadFileMinidumpCode: <code />,
  51. minidumpEndpointUrlItalic: <i />,
  52. projectSettingsItalic: <i />,
  53. }
  54. ),
  55. language: 'bash',
  56. code: getCurlSnippet(params),
  57. },
  58. ],
  59. additionalInfo: tct(
  60. '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].',
  61. {
  62. passingAdditionalDataLink: (
  63. <ExternalLink href="https://docs.sentry.io/platforms/native/guides/minidumps/" />
  64. ),
  65. }
  66. ),
  67. },
  68. ],
  69. configure: () => [],
  70. verify: () => [],
  71. };
  72. const docs: Docs = {
  73. onboarding,
  74. };
  75. export default docs;