Skip to content

Commit 5a00274

Browse files
committed
Adding trace propagation callout for localhost
1 parent ceaaf51 commit 5a00274

File tree

9 files changed

+66
-2
lines changed

9 files changed

+66
-2
lines changed

platform-includes/distributed-tracing/how-to-use/javascript.astro.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ If you're using our Astro SDK, distributed tracing will work out of the box for
22

33
When you are interacting with other external API systems, you might have to define `tracePropagationTargets` to get around possible [Browser CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues.
44

5+
<Alert>
6+
7+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
8+
9+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
10+
11+
</Alert>
12+
513
```javascript
614
// sentry.client.config.js
715
Sentry.init({

platform-includes/distributed-tracing/how-to-use/javascript.cloudflare.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ The Sentry Cloudflare SDK has out of the box support for distributed tracing if
22

33
### Custom Instrumentation
44

5-
If you don't want to use tracing, you can set up <PlatformLink to="/tracing/trace-propagation/custom-instrumentation/">Custom Instrumentation</PlatformLink> for distributed tracing.
5+
If you don't want to use the default tracing setup, you can set up <PlatformLink to="/tracing/trace-propagation/custom-instrumentation/">Custom Instrumentation</PlatformLink> for distributed tracing.
66

77
### Disabling Distributed Tracing
88

platform-includes/distributed-tracing/how-to-use/javascript.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ If you're using the current version of our JavaScript SDK and have enabled the `
22

33
To get around possible [Browser CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues, define your `tracePropagationTargets`.
44

5+
<Alert>
6+
7+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
8+
9+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
10+
11+
</Alert>
12+
513
```javascript
614
Sentry.init({
715
dsn: "___PUBLIC_DSN___",

platform-includes/distributed-tracing/how-to-use/javascript.nextjs.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ If you're using the current version of our Next.js SDK, distributed tracing will
22

33
For client-side, when you are interacting with other external API systems, you might have to define `tracePropagationTargets` to get around possible [Browser CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues.
44

5+
<Alert>
6+
7+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
8+
9+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
10+
11+
</Alert>
12+
513
```javascript
614
// sentry.client.config.js
715
Sentry.init({

platform-includes/distributed-tracing/how-to-use/javascript.node.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@ Sentry.init({
88
});
99
```
1010

11+
<Alert>
12+
13+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
14+
15+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
16+
17+
</Alert>
18+
1119
### Custom Instrumentation
1220

13-
If you don't want to use tracing, you can set up <PlatformLink to="/tracing/trace-propagation/custom-instrumentation/">Custom Instrumentation</PlatformLink> for distributed tracing.
21+
If you don't want to use the default tracing setup, you can set up <PlatformLink to="/tracing/trace-propagation/custom-instrumentation/">Custom Instrumentation</PlatformLink> for distributed tracing.
1422

1523
#### Example 1: Microservices E-commerce Platform
1624

platform-includes/distributed-tracing/how-to-use/javascript.nuxt.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ If you're using the current version of our Nuxt SDK, distributed tracing will wo
22

33
To get around possible [Browser CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues, you should define `tracePropagationTargets` for client-side.
44

5+
<Alert>
6+
7+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
8+
9+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
10+
11+
</Alert>
12+
513
```javascript {filename:sentry.client.config.(js|ts)}
614
Sentry.init({
715
dsn: "___PUBLIC_DSN___",

platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ The `name` attributes must be the strings `"sentry-trace"` and `"baggage"` and t
3333

3434
To get around possible [Browser CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues, you should define `tracePropagationTargets` on the client side. See <PlatformLink to="/tracing/trace-propagation/dealing-with-cors-issues/">Dealing with CORS Issues</PlatformLink> for more information.
3535

36+
<Alert>
37+
38+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
39+
40+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
41+
42+
</Alert>
43+
3644
```javascript
3745
// entry.client.tsx
3846
Sentry.init({

platform-includes/distributed-tracing/how-to-use/javascript.solidstart.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ export default defineConfig({
2727

2828
To get around possible [Browser CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues, you should define `tracePropagationTargets` for client-side.
2929

30+
<Alert>
31+
32+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
33+
34+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
35+
36+
</Alert>
37+
3038
```javascript
3139
// hooks.client.js
3240
Sentry.init({

platform-includes/distributed-tracing/how-to-use/javascript.sveltekit.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ If you're using the current version of our SvelteKit SDK, distributed tracing wi
22

33
When you are interacting with other external API systems, you might have to define `tracePropagationTargets` to get around possible [Browser CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) issues.
44

5+
<Alert>
6+
7+
When testing locally, you may need to configure the `tracePropagationTargets` to ensure that traces are propagated across your local services if they have different port numbers.
8+
9+
For example, if you have a Vite frontend running on `http://localhost:5173` and a Bun backend running on `http://localhost:3000`, you'll need to add `http://localhost:5173` and `http://localhost:3000` to the `tracePropagationTargets` array.
10+
11+
</Alert>
12+
513
```javascript
614
// hooks.client.js
715
Sentry.init({

0 commit comments

Comments
 (0)