Skip to content

Commit 4d2a185

Browse files
committed
reword tracesSampleRate comment in code snippets
1 parent 57e6a3b commit 4d2a185

File tree

18 files changed

+54
-27
lines changed

18 files changed

+54
-27
lines changed

src/platforms/javascript/common/install/cdn.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ Sentry.init({
4141
release: "my-project-name@" + process.env.npm_package_version,
4242
integrations: [new Sentry.Integrations.BrowserTracing()],
4343

44-
// Be sure to lower this in production, or use tracesSampler for finer control
44+
// We recommend adjusting this value in production, or using tracesSampler
45+
// for finer control
4546
tracesSampleRate: 1.0,
4647
});
4748
```

src/platforms/javascript/common/performance/automatic.mdx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ Sentry.init({
2424
}),
2525
],
2626

27-
// Be sure to lower this in production, or use tracesSampler for finer control
27+
// We recommend adjusting this value in production, or using tracesSampler
28+
// for finer control
2829
tracesSampleRate: 1.0,
2930
});
3031
```
@@ -40,7 +41,8 @@ Sentry.init({
4041
}),
4142
],
4243

43-
// Be sure to lower this in production, or use tracesSampler for finer control
44+
// We recommend adjusting this value in production, or using tracesSampler
45+
// for finer control
4446
tracesSampleRate: 1.0,
4547
});
4648
```
@@ -64,7 +66,8 @@ Sentry.init({
6466
}),
6567
],
6668

67-
// Be sure to lower this in production, or use tracesSampler for finer control
69+
// We recommend adjusting this value in production, or using tracesSampler
70+
// for finer control
6871
tracesSampleRate: 1.0,
6972
});
7073
```
@@ -107,7 +110,8 @@ Sentry.init({
107110
}),
108111
],
109112

110-
// Be sure to lower this in production, or use tracesSampler for finer control
113+
// We recommend adjusting this value in production, or using tracesSampler
114+
// for finer control
111115
tracesSampleRate: 1.0,
112116
});
113117
```
@@ -133,7 +137,8 @@ Sentry.init({
133137
}),
134138
],
135139

136-
// Be sure to lower this in production, or use tracesSampler for finer control
140+
// We recommend adjusting this value in production, or using tracesSampler
141+
// for finer control
137142
tracesSampleRate: 1.0,
138143
});
139144
```

src/platforms/javascript/guides/angular/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ Sentry.init({
105105
}),
106106
],
107107

108-
// Be sure to lower this in production, or use tracesSampler for finer control
108+
// We recommend adjusting this value in production, or using tracesSampler
109+
// for finer control
109110
tracesSampleRate: 1.0,
110111
});
111112
```

src/platforms/javascript/guides/react/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ Sentry.init({
145145
release: "my-project-name@" + process.env.npm_package_version,
146146
integrations: [new Integrations.BrowserTracing()],
147147

148-
// Be sure to lower this in production, or use tracesSampler for finer control
148+
// We recommend adjusting this value in production, or using tracesSampler
149+
// for finer control
149150
tracesSampleRate: 1.0,
150151
});
151152
```

src/platforms/javascript/guides/react/integrations/react-router.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Sentry.init({
3636
});
3737
],
3838

39-
// Be sure to lower this in production, or use tracesSampler for finer control
39+
// We recommend adjusting this value in production, or using tracesSampler
40+
// for finer control
4041
tracesSampleRate: 1.0,
4142
});
4243

@@ -82,7 +83,8 @@ Sentry.init({
8283
});
8384
],
8485

85-
// Be sure to lower this in production, or use tracesSampler for finer control
86+
// We recommend adjusting this value in production, or using tracesSampler
87+
// for finer control
8688
tracesSampleRate: 1.0,
8789
});
8890

@@ -123,7 +125,8 @@ Sentry.init({
123125
});
124126
],
125127

126-
// Be sure to lower this in production, or use tracesSampler for finer control
128+
// We recommend adjusting this value in production, or using tracesSampler
129+
// for finer control
127130
tracesSampleRate: 1.0,
128131
});
129132

@@ -172,7 +175,8 @@ Sentry.init({
172175
});
173176
],
174177

175-
// Be sure to lower this in production, or use tracesSampler for finer control
178+
// We recommend adjusting this value in production, or using tracesSampler
179+
// for finer control
176180
tracesSampleRate: 1.0,
177181
});
178182
```

src/platforms/javascript/guides/vue/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ Sentry.init({
101101
}),
102102
],
103103

104-
// Be sure to lower this in production, or use tracesSampler for finer control
104+
// We recommend adjusting this value in production, or using tracesSampler
105+
// for finer control
105106
tracesSampleRate: 1.0,
106107
});
107108
```

src/platforms/javascript/guides/vue/integrations/components.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ Sentry.init({
3535
}),
3636
],
3737

38-
// Be sure to lower this in production, or use tracesSampler for finer control
38+
// We recommend adjusting this value in production, or using tracesSampler
39+
// for finer control
3940
tracesSampleRate: 1.0,
4041
});
4142
```

src/platforms/javascript/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ Sentry.init({
119119
release: "my-project-name@" + process.env.npm_package_version,
120120
integrations: [new Integrations.BrowserTracing()],
121121

122-
// Be sure to lower this in production, or use tracesSampler for finer control
122+
// We recommend adjusting this value in production, or using tracesSampler
123+
// for finer control
123124
tracesSampleRate: 1.0,
124125
});
125126
```

src/platforms/node/common/performance/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ Sentry.init({
1818
new Sentry.Integrations.Http({ tracing: true }),
1919
],
2020

21-
// Be sure to lower this in production, or use tracesSampler for finer control
21+
// We recommend adjusting this value in production, or using tracesSampler
22+
// for finer control
2223
tracesSampleRate: 1.0,
2324
});
2425

src/platforms/node/guides/express/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ Sentry.init({
167167
new Tracing.Integrations.Express({ app }),
168168
],
169169

170-
// Be sure to lower this in production, or use tracesSampler for finer control
170+
// We recommend adjusting this value in production, or using tracesSampler
171+
// for finer control
171172
tracesSampleRate: 1.0,
172173
});
173174

src/platforms/node/guides/koa/index.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ const domain = require("domain");
6767
Sentry.init({
6868
dsn: "___PUBLIC_DSN___",
6969

70-
// Be sure to lower this in production, or use tracesSampler for finer control
70+
// We recommend adjusting this value in production, or using tracesSampler
71+
// for finer control
7172
tracesSampleRate: 1.0,
7273
});
7374

src/platforms/node/index.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ const Tracing = require("@sentry/tracing");
7171
Sentry.init({
7272
dsn: "___PUBLIC_DSN___",
7373

74-
// Be sure to lower this in production, or use tracesSampler for finer control
74+
// We recommend adjusting this value in production, or using tracesSampler
75+
// for finer control
7576
tracesSampleRate: 1.0,
7677
});
7778
```
@@ -83,7 +84,8 @@ import * as Tracing from "@sentry/tracing";
8384
Sentry.init({
8485
dsn: "___PUBLIC_DSN___",
8586

86-
// Be sure to lower this in production, or use tracesSampler for finer control
87+
// We recommend adjusting this value in production, or using tracesSampler
88+
// for finer control
8789
tracesSampleRate: 1.0,
8890
});
8991
```

src/wizard/javascript/angular.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ Sentry.init({
3636
}),
3737
],
3838

39-
// Be sure to lower this in production, or use tracesSampler for finer control
39+
// We recommend adjusting this value in production, or using tracesSampler
40+
// for finer control
4041
tracesSampleRate: 1.0,
4142
});
4243

src/wizard/javascript/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ Sentry.init({
2727
new Integrations.BrowserTracing(),
2828
],
2929

30-
// Be sure to lower this in production, or use tracesSampler for finer control
30+
// We recommend adjusting this value in production, or using tracesSampler
31+
// for finer control
3132
tracesSampleRate: 1.0,
3233
});
3334
```

src/wizard/javascript/react.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ Sentry.init({
3737
new Integrations.BrowserTracing(),
3838
],
3939

40-
// Be sure to lower this in production, or use tracesSampler for finer control
40+
// We recommend adjusting this value in production, or using tracesSampler
41+
// for finer control
4142
tracesSampleRate: 1.0,
4243
});
4344

src/wizard/javascript/vue.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ Sentry.init({
4545
new Integrations.BrowserTracing(),
4646
],
4747

48-
// Be sure to lower this in production, or use tracesSampler for finer control
48+
// We recommend adjusting this value in production, or using tracesSampler
49+
// for finer control
4950
tracesSampleRate: 1.0,
5051
});
5152
```
@@ -82,7 +83,8 @@ Sentry.init({
8283
new Sentry.Integrations.BrowserTracing(),
8384
],
8485

85-
// Be sure to lower this in production, or use tracesSampler for finer control
86+
// We recommend adjusting this value in production, or using tracesSampler
87+
// for finer control
8688
tracesSampleRate: 1.0,
8789
});
8890
```

src/wizard/node/express.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ Sentry.init({
3838
new Tracing.Integrations.Express({ app }),
3939
],
4040

41-
// Be sure to lower this in production, or use tracesSampler for finer control
41+
// We recommend adjusting this value in production, or using tracesSampler
42+
// for finer control
4243
tracesSampleRate: 1.0,
4344
});
4445

src/wizard/node/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ const Tracing = require("@sentry/tracing");
2929
Sentry.init({
3030
dsn: "___PUBLIC_DSN___",
3131

32-
// Be sure to lower this in production, or use tracesSampler for finer control
32+
// We recommend adjusting this value in production, or using tracesSampler
33+
// for finer control
3334
tracesSampleRate: 1.0,
3435
});
3536

0 commit comments

Comments
 (0)