Skip to content

Commit ac96a19

Browse files
Alex KrawiecAlex Krawiec
authored andcommitted
Update links and make minor copy edits
1 parent 3ac26c8 commit ac96a19

File tree

4 files changed

+24
-31
lines changed

4 files changed

+24
-31
lines changed

docs/product/sentry-basics/distributed-tracing/generate-first-error.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ To start using Sentry's error monitoring feature, you need some errors first. Le
1414

1515
If you're using your own source code, skip this step. Instead, select your [platform](/platforms/) and follow its **Verify** step inside the **Getting Started** guide to introduce an error.
1616

17-
1. In the `tracing-frontend` repo, open `src/App.js` and update the `onClick` handler by replacing the string passed to the `getProduct()` function from `nonfat-water` to `debug-sentry`.
17+
1. In the `tracing-tutorial-frontend` repo, open `src/App.js` and update the `onClick` handler by replacing the string passed to the `getProduct()` function from `nonfat-water` to `debug-sentry`.
1818

1919
```jsx {filename:App.js}
2020
<div className="btn-parent">
@@ -28,7 +28,7 @@ If you're using your own source code, skip this step. Instead, select your [plat
2828
</button>
2929
</div>
3030
```
31-
Take note that in the `server.js` file of the `backend-tracing` repo, there is a middleware function handling the `/products/debug-sentry` route, which throws a sample error:
31+
Take note that in the `server.js` file of the `tracing-tutorial-backend` repo, there is a middleware function handling the `/products/debug-sentry` route, which throws a sample error:
3232

3333
```javascript{filename:server.js}
3434
app.get("/products/debug-sentry", (req, res) => {
@@ -41,9 +41,9 @@ app.get("/products/debug-sentry", (req, res) => {
4141

4242
1. Save the file.
4343

44-
1. Go back to the browser window and try clicking on the **Nonfat Water** button again, you will no longer see the expected product information. Instead, you'll see text saying something went wrong. If you look at line 88 of the `App.js` file in the `frontend-tracing` repo, you'll see this is what the frontend displays when it's call to the backend doesn't return any data.
44+
1. Go back to the browser window and try clicking on the **Nonfat Water** button again, you will no longer see the expected product information. Instead, you'll see text saying something went wrong. If you look at line 88 of the `App.js` file in the `tracing-tutorial-frontend` repo, you'll see this is what the frontend displays when it's call to the backend doesn't return any data.
4545

46-
1. Open the terminal window that's running the `backend-tracing` server. Here, you'll see that a log letting you know that an error has occurred.
46+
1. Open the terminal window that's running the `tracing-tutorial-backend` server. Here, you'll see that a log letting you know that an error has occurred.
4747

4848
```bash
4949
Sentry Error thrown!

docs/product/sentry-basics/distributed-tracing/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This step-by-step tutorial walks you through setting up Sentry in both a fronten
1010
- Trigger a sample front-error that in turn triggers a sample back-end error.
1111
- Go into Sentry Distributed Tracing and see the details of your entire trace.
1212

13-
This tutorial uses a [sample React application](https://github.com/getsentry/frontend-tutorial) on the frontend as well as a sample [Node/Express API](https://github.com/getsentry/frontend-tutorial) as the backend. Some familiarity with JavaScript will help you follow along, you can also follow along with the provided sample code or apply the same steps to your own project.
13+
This tutorial uses a [sample React application](https://github.com/getsentry/tracing-tutorial-setting-up-frontend) on the frontend as well as a sample [Node/Express API](https://github.com/coolguyzone/sample-node-backend) as the backend. Some familiarity with JavaScript will help you follow along, you can also follow along with the provided sample code or apply the same steps to your own project.
1414

1515
## Prerequisites
1616

docs/product/sentry-basics/distributed-tracing/initialize-sentry-sdk-backend.mdx

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ This section walks you through how to import the sample application into your lo
99
If you're using your own source code, you can skip this section. Instead:
1010

1111
- Select your [platform](/platforms/) and follow its **Getting Started** guide to add the Sentry SDK to your code.
12-
- Then, skip to the [next step](/guides/integrate-frontend/generate-first-error/).
12+
- Then, skip to the [next step](/product/sentry-basics/integrate-frontend/generate-first-error/).
1313
{/* TODO: UPDATE THIS LINK */}
1414

1515
## 1. Clone the Sample Application
1616

1717
The sample application is a basic backend application using Express and Node.
1818

19-
1. Fork the [sample application's repository](https://github.com/getsentry/frontend-tutorial) on GitHub.
20-
{/* TODO: ADD CUSTOM REPO HERE */}
19+
1. Fork the [sample application's repository](https://github.com/coolguyzone/tracing-tutorial-backend.git) on GitHub.
2120

2221
1. Clone the forked repository to your local environment:
2322

@@ -26,17 +25,16 @@ The sample application is a basic backend application using Express and Node.
2625
```
2726
{/* TODO: UPDATE NAME OF THIS REPO */}
2827

29-
1. Open the `backend-tutorial` project in your preferred code editor.
28+
1. Open the `tracing-tutorial-backend` project in your preferred code editor.
3029
{/* TODO: UPDATE NAME OF THIS REPO */}
3130

32-
## 2. Add the Sentry Express SDK
31+
## 2. Add the Sentry Node SDK
3332

34-
Sentry captures data by using a platform-specific SDK that you add to your application's runtime. To use the SDK, import and configure it in your source code. This demo project uses [Sentry's Express SDK](https://github.com/getsentry/sentry-javascript/tree/develop/packages/react).
35-
{/* TODO: UPDATE THIS LINK */}
33+
Sentry captures data by using a platform-specific SDK that you add to your application's runtime. To use the SDK, import and configure it in your source code. This demo project uses [Sentry's Node SDK](https://github.com/getsentry/sentry-javascript/tree/master/packages/node).
3634

3735
1. Install the Sentry Express SDK using NPM.
3836

39-
Make sure you're in the `backend-tutorial` project folder.
37+
Make sure you're in the `tracing-tutorial-backend` project folder.
4038
{/* TODO: UPDATE NAME OF THIS REPO */}
4139

4240

@@ -78,7 +76,7 @@ Sentry captures data by using a platform-specific SDK that you add to your appli
7876

7977
1. Add your DSN key to the Sentry SDK configuration.
8078

81-
Paste in the DSN key value you copied from the project created in the [previous section](/product/sentry-basics/integrate-frontend/create-new-project/).
79+
Paste in the DSN key value you copied from the project created in the [previous section](/product/sentry-basics/distributed-tracing/create-new-project/).
8280
{/* TODO: Update link here */}
8381

8482
```javascript {filename:instrument.js}
@@ -141,8 +139,7 @@ Make sure to import `instrument.js` at the top of your `server.js` file, and set
141139

142140
## 3. Build and Run the Sample Application
143141

144-
In the `frontend-tutorial` project folder:
145-
{/* TODO: UPDATE NAME OF THIS REPO */}
142+
In the `tracing-tutorial-backend` project folder:
146143

147144
1. Install project dependencies.
148145

@@ -153,16 +150,13 @@ In the `frontend-tutorial` project folder:
153150
1. Start the application in develop mode.
154151

155152
```bash
156-
npm start
153+
node server.js
157154
```
158155

159156
Once the application starts, you'll see a confirmation message similar to this one in your terminal:
160157

161158
```bash
162-
<i> [webpack-dev-server] Project is running at:
163-
<i> [webpack-dev-server] Loopback: http://localhost:3001/
164-
...
165-
webpack 5.87.0 compiled successfully in 1306 ms
159+
Server is running on port 3001
166160
```
167161

168162
> **Troubleshooting tip**: If the application fails to start due to syntax errors or errors for missing dependencies/modules, make sure you're using Node 18+ and install dependencies again. Run `nvm use 18` and then `npm install`.
@@ -175,5 +169,4 @@ In the `frontend-tutorial` project folder:
175169

176170
## Next
177171

178-
At this point, you have a sample Express backend app running with the Sentry SDK initialized. Next, [Generate your first cross-project error](/product/sentry-basics/integrate-frontend/generate-first-error/) to start using Sentry's Distributed Tracing feature.
179-
{/* TODO: UPDATE THIS LINK */}
172+
At this point, you have a sample Express backend app running with the Sentry SDK initialized. Next, [Generate your first cross-project error](/product/sentry-basics/distributed-tracing/generate-first-error/) to start using Sentry's Distributed Tracing feature.

docs/product/sentry-basics/distributed-tracing/initialize-sentry-sdk-frontend.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@ This section walks you through how to import the sample application into your lo
99
If you're using your own source code, you can skip this section. Instead:
1010

1111
- Select your [platform](/platforms/) and follow its **Getting Started** guide to add the Sentry SDK to your code.
12-
- Then, skip to the [next step](/guides/integrate-frontend/generate-first-error/).
12+
- Then, skip to the [next step](/product/sentry-basics/distributed-tracing/initialize-sentry-sdk-backend/).
1313

1414
## 1. Clone the Sample Application
1515

1616
The sample application is a basic frontend-only application using React and webpack.
1717

18-
1. Fork the [sample application's repository](https://github.com/getsentry/frontend-tutorial) on GitHub.
18+
1. Fork the [sample application's repository](https://github.com/getsentry/tracing-tutorial-setting-up-frontend) on GitHub.
1919

2020
1. Clone the forked repository to your local environment:
2121

2222
```bash
23-
git clone [email protected]:<your_username>/frontend-tutorial.git
23+
git clone [email protected]:<your_username>/tracing-tutorial-frontend.git
2424
```
2525

26-
1. Open the `frontend-tutorial` project in your preferred code editor.
26+
1. Open the `tracing-tutorial-frontend` project in your preferred code editor.
2727

2828
## 2. Add the Sentry React SDK
2929

3030
Sentry captures data by using a platform-specific SDK that you add to your application's runtime. To use the SDK, import and configure it in your source code. This demo project uses [Sentry's React SDK](https://github.com/getsentry/sentry-javascript/tree/develop/packages/react).
3131

3232
1. Install the Sentry React SDK using NPM.
3333

34-
Make sure you're in the `frontend-tutorial` project folder.
34+
Make sure you're in the `tracing-tutorial-frontend` project folder.
3535

3636
```bash {tabTitle:npm}
3737
npm install @sentry/react --save
@@ -71,7 +71,7 @@ Sentry captures data by using a platform-specific SDK that you add to your appli
7171

7272
1. Add your DSN key to the Sentry SDK configuration.
7373

74-
Paste in the DSN key value you copied from the project created in the [previous section](/product/sentry-basics/integrate-frontend/create-new-project/).
74+
Paste in the DSN key value you copied from the project created in the [previous section](/product/sentry-basics/distributed-tracing/create-new-project/).
7575

7676
```javascript {filename:src/index.js}
7777
Sentry.init({
@@ -88,7 +88,7 @@ The configuration above enables Sentry's error monitoring feature, as well as it
8888

8989
## 3. Build and Run the Sample Application
9090

91-
In the `frontend-tutorial` project folder:
91+
In the `tracing-tutorial-frontend` project folder:
9292

9393
1. Install project dependencies.
9494

@@ -120,4 +120,4 @@ In the `frontend-tutorial` project folder:
120120

121121
## Next
122122

123-
At this point, you have a sample React app running with the Sentry SDK initialized. Next, [Add the Sentry SDK to Your Backend Project](/product/sentry-basics/distributed-tracing/initialize-sentry-sdk-backend/) to start using Sentry's error monitoring feature.
123+
At this point, you have a sample React app running with the Sentry SDK initialized. Next, [Add the Sentry SDK to Your Backend Project](/product/sentry-basics/distributed-tracing/initialize-sentry-sdk-backend/) to get Sentry running across the entire stack of your platform.

0 commit comments

Comments
 (0)