123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import ExternalLink from 'sentry/components/links/externalLink';
- import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
- import type {
- Docs,
- OnboardingConfig,
- } from 'sentry/components/onboarding/gettingStartedDoc/types';
- import {tct} from 'sentry/locale';
- const getVerifySnippet = () => `
- extends Node
- func _ready():
- SentrySDK.add_breadcrumb("Just about to welcome the World.", "Note")
- SentrySDK.capture_message("Hello, World!")
- `;
- const onboarding: OnboardingConfig = {
- install: () => [
- {
- type: StepType.INSTALL,
- description: tct(
- "To get started, download the latest release of sentry Godot GDExtension from [releasesLink: GitHub Releases page] and place the Sentry SDK addon in [code: addons/sentry] in your project's directory.",
- {
- releasesLink: (
- <ExternalLink href="https://github.com/getsentry/sentry-godot/releases" />
- ),
- code: <code />,
- }
- ),
- },
- ],
- configure: params => [
- {
- type: StepType.CONFIGURE,
- description: (
- <p>
- {tct(
- 'Sentry can be configured via Project Settings or with a [link: Configuration Script]. To access project settings in Godot Engine, navigate to [code:Project > Project Settings > Sentry] section, and enter the DSN for the [code:Dsn] option.',
- {
- code: <code />,
- link: (
- <ExternalLink href="https://docs.sentry.io/platforms/godot/configuration/options/" />
- ),
- }
- )}
- </p>
- ),
- configurations: [{language: 'url', code: params.dsn.public}],
- },
- ],
- verify: () => [
- {
- type: StepType.VERIFY,
- description: tct(
- 'Once the SDK is configured with the DSN you can add a [code:Node] to your test scene and attach a script with the following content',
- {
- code: <code />,
- }
- ),
- configurations: [{language: 'gdscript', code: getVerifySnippet()}],
- additionalInfo: tct(
- 'Check the [godotSDKDocumentationLink:Godot SDK Documentation] for more details.',
- {
- godotSDKDocumentationLink: (
- <ExternalLink href="https://docs.sentry.io/platforms/godot/" />
- ),
- }
- ),
- },
- ],
- };
- const docs: Docs = {onboarding};
- export default docs;
|