Skip to content

Commit 105f765

Browse files
Alex KrawiecAlex Krawiec
authored andcommitted
Add code highlighting where needed
1 parent 20611b6 commit 105f765

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you're using your own source code, skip this step. Instead, select your [plat
1616

1717
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

19-
```jsx {filename:App.js}
19+
```jsx {filename:App.js} {7}
2020
<div className="btn-parent">
2121
<button className="btn" onClick={() => getProduct("clown-shoes")}>
2222
Clown Shoes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ The configuration above enables Sentry's error monitoring feature, as well as it
9393

9494
Be sure to import `instrument.js` at the top of your `server.js` file. Then import `Sentry` and set up the error handler after all controllers and before any other middleware:
9595

96-
``` javascript {filename:server.js}
96+
``` javascript {filename:server.js} {1-7, 26-36}
9797
// IMPORTANT: Make sure to import `instrument.js` at the top of your file.
9898
// If you're using ECMAScript Modules (ESM) syntax, use `import "./instrument.js";`
9999
require("./instrument.js");

0 commit comments

Comments
 (0)