Skip to content

Commit 57e6a3b

Browse files
committed
general language-fixing
1 parent 841d654 commit 57e6a3b

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

src/components/platformSidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const PlatformSidebar = ({
8383
<DynamicNav
8484
root={`/${pathRoot}/performance`}
8585
title="Performance Monitoring"
86-
prependLinks={[[`/${pathRoot}/performance/`, "Enable Performance"]]}
86+
prependLinks={[[`/${pathRoot}/performance/`, "Enabling Tracing"]]}
8787
suppressMissing
8888
tree={tree}
8989
/>

src/includes/configuration/decluttering/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ You can also use `denyUrls` if you want to block specific URLs forever.
66

77
<Alert level="warning" title="Note"><markdown>
88

9-
Prior to version 5.17.0, `allowUrls` and `denyUrls` were called `whitelistUrls` and `blacklistUrls` respectively. These options are still supported due to backward compatibility reasons; however, they will be removed in version 6.0. For more information, please see our [Inclusive Language Policy](https://develop.sentry.dev/inclusion/).
9+
Prior to version 5.17.0, `allowUrls` and `denyUrls` were called `whitelistUrls` and `blacklistUrls` respectively. These options are still supported for backwards compatibility reasons, but they will be removed in version 6.0. For more information, please see our [Inclusive Language Policy](https://develop.sentry.dev/inclusion/).
1010

1111
</markdown></Alert>
1212

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

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Performance Monitoring
33
sidebar_order: 20
4-
description: "Learn more about how to configure our Performance integrations to get the best experience out of it."
4+
description: "Learn how to enable performance monitoring in your app."
55
redirect_from:
66
- /platforms/javascript/performance/apm-to-tracing/
77
---
@@ -41,28 +41,44 @@ Once you've installed the package, there are two ways to enable tracing in your
4141
- Control the sample rate dynamically, based on the transaction itself and the context in which it's captured, by providing a function to the `tracesSampler` config option.
4242
4343
```javascript {tabTitle: ESM}
44-
// Substitude `@sentry/browser` for the integration you're using (if applicable)
44+
// If you're using one of our integration packages, like `@sentry/react` or
45+
// `@sentry/angular`, substitute its name for `@sentry/browser` here
4546
import * as Sentry from "@sentry/browser";
4647

47-
// Pull in the additional tracing integration
48+
// If taking advantage of automatic instrumentation (highly recommended)
4849
import { Integrations as TracingIntegrations } from "@sentry/tracing";
50+
// Or, if only doing manual tracing
51+
// import * as _ from "@sentry/tracing"
52+
// Note: You MUST import the package in some way for tracing to work
4953

5054
Sentry.init({
5155
dsn: "___PUBLIC_DSN___",
56+
57+
// This enables automatic instrumentation (highly recommeneded), but is not
58+
// necessary for purely manual usage
5259
integrations: [new TracingIntegrations.BrowserTracing()],
5360

54-
// Be sure to lower this in production, or use tracesSampler for finer control
55-
tracesSampleRate: 1.0,
61+
// To set a uniform sample rate
62+
tracesSampleRate: 0.2
63+
64+
// Alternatively, to control sampling dynamically
65+
tracesSampler: samplingContext => { ... }
5666
});
5767
```
5868
5969
```javascript {tabTitle: CDN}
6070
Sentry.init({
6171
dsn: "___PUBLIC_DSN___",
72+
73+
// This enables automatic instrumentation (highly recommeneded), but is not
74+
// necessary for purely manual usage
6275
integrations: [new Sentry.Integrations.BrowserTracing()],
6376
64-
// Be sure to lower this in production, or use tracesSampler for finer control
65-
tracesSampleRate: 1.0,
77+
// To set a uniform sample rate
78+
tracesSampleRate: 0.2
79+
80+
// Alternatively, to control sampling dynamically
81+
tracesSampler: samplingContext => { ... }
6682
});
6783
```
6884

0 commit comments

Comments
 (0)