-
-
Notifications
You must be signed in to change notification settings - Fork 32
feat(website): improve Getting Started and CLI pages for better onboarding #1218
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,52 +1,54 @@ | ||
| --- | ||
| title: Using Spotlight | ||
| description: Use Spotlight as a standalone application | ||
| title: Getting Started | ||
| description: Choose how to run Spotlight in your development environment | ||
| sidebar: | ||
| order: 0 | ||
| --- | ||
| import DownloadButton from '../../../../components/DownloadButton.astro'; | ||
| import { Tabs, TabItem } from '@astrojs/starlight/components'; | ||
|
|
||
| Spotlight provides an Electron app that can be used to run the Sidecar as well as a dedicated instance of the overlay. | ||
|
|
||
| ## Installation | ||
|
|
||
| Get started by downloading the latest version of the Electron app for your platform. | ||
|
|
||
| <DownloadButton>Download for Mac</DownloadButton> | ||
|
|
||
| ### Other ways | ||
|
|
||
| If Electron apps are not your thing or you are not using a Mac we have some more ways to run Spotlight with it's web UI: | ||
|
|
||
| <Tabs> | ||
| <TabItem label="npx"> | ||
| ```shell | ||
| npx @spotlightjs/spotlight | ||
| ``` | ||
| </TabItem> | ||
| <TabItem label="docker"> | ||
| ```shell | ||
| docker run --rm -p 8969 ghcr.io/getsentry/spotlight:latest | ||
| ``` | ||
| </TabItem> | ||
| <TabItem label="binary"> | ||
| ```shell | ||
| curl -q https://spotlightjs.com/install.sh | sh | ||
| ``` | ||
| </TabItem> | ||
| </Tabs> | ||
|
|
||
| ## SDK Setup | ||
|
|
||
| In addition to loading the application, make sure you've enabled spotlight in the relevant Sentry SDKs (e.g. via `spotlight: true`): | ||
|
|
||
| For front-end applications, you need to enable the `browserTracingIntegration` for tracing to work. This is to only include this bit of the code for the users of Spotlight: | ||
|
|
||
| ```javascript | ||
| import * as Sentry from '@sentry/browser'; | ||
| import { Tabs, TabItem, LinkCard, CardGrid } from '@astrojs/starlight/components'; | ||
| import DownloadButton from '../../../../components/DownloadButton.astro'; | ||
|
|
||
| Sentry.init({ | ||
| dsn: '___DSN___', | ||
| integrations: [Sentry.browserTracingIntegration()], | ||
| // ...other Sentry options | ||
| }); | ||
| ``` | ||
| Spotlight offers several ways to run depending on your workflow and preferences. All options provide the same core debugging capabilities. Choose the one that fits best. | ||
|
|
||
| ## Three Ways to Run Spotlight | ||
| :::tip[Combine Options] | ||
| You can use multiple options together. For example, run the Desktop App for visual debugging while also connecting Cursor via MCP for AI-assisted debugging. | ||
| ::: | ||
| | Option | Best For | Platform | UI | | ||
| |--------|----------|----------|-----| | ||
| | **Desktop App** | Visual debugging in a dedicated window | All platforms | Built-in | | ||
| | **CLI** | Terminal workflows, wrapping apps, automation | All platforms | Browser | | ||
| | **MCP Server** | AI-assisted debugging with Cursor, Claude, etc. | All platforms | none | | ||
|
|
||
| <CardGrid> | ||
| <LinkCard | ||
| title="Desktop App" | ||
| href="/docs/desktop-app/" | ||
| description="Standalone app with built-in UI. Best for visual debugging and dedicated window workflows." | ||
| /> | ||
| <LinkCard | ||
| title="CLI" | ||
| href="/docs/cli/" | ||
| description="Run apps with automatic instrumentation, stream events to your terminal, or start the sidecar server." | ||
| /> | ||
| <LinkCard | ||
| title="MCP Server" | ||
| href="/docs/mcp/" | ||
| description="Connect Spotlight to AI coding assistants like Cursor and Claude for AI-assisted debugging." | ||
| /> | ||
| </CardGrid> | ||
|
|
||
|
|
||
|
|
||
|
|
||
| ## Next Steps | ||
|
|
||
| After choosing your setup method, you may need to configure your application's Sentry SDK: | ||
|
|
||
| <LinkCard | ||
| title="SDK Configuration" | ||
| href="/docs/sidecar/#sdk-integration" | ||
| description="Learn how to configure Sentry SDKs to send data to Spotlight" | ||
| /> | ||
|
|
||
| Most SDKs automatically detect the `SENTRY_SPOTLIGHT` environment variable—just set it to `1` or the sidecar URL. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point.