Skip to content

Commit 2e3b0f2

Browse files
authored
docs(js): Update docs for top level metric options (#15441)
1 parent e4a39d2 commit 2e3b0f2

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

docs/platforms/javascript/common/metrics/index.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ This feature is currently in limited beta. Please reach out on [GitHub](https://
1515

1616
<PlatformContent includePath="metrics/requirements" />
1717

18-
## Setup
19-
20-
<PlatformContent includePath="metrics/setup" />
21-
2218
## Usage
2319

2420
<PlatformContent includePath="metrics/usage" />

platform-includes/metrics/options/javascript.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ If you want to disable metrics collection entirely, you can do so by disabling t
3737
```javascript
3838
Sentry.init({
3939
dsn: "___PUBLIC_DSN___",
40-
_experiments: {
41-
enableMetrics: false,
42-
}
40+
enableMetrics: false,
4341
});
4442
```
4543
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Metrics are supported in all Sentry JavaScript SDKs version `10.22.0` and above.
1+
Metrics are supported in all Sentry JavaScript SDKs version `10.24.0` and above.

platform-includes/metrics/setup/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Metrics are gated by an experimental option, `_experiments.enableMetrics` (this will not be required in future versions of the SDK).
1+
Metrics are enabled by default.
22

33
```javascript
44
Sentry.init({

platform-includes/metrics/usage/javascript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Once the feature is enabled and the SDK is initialized, you can send metrics using the `Sentry.metrics` APIs.
1+
Once the SDK is initialized, you can send metrics using the `Sentry.metrics` APIs.
22

33
The `metrics` namespace exposes three methods that you can use to capture different types of metric information: `count`, `gauge` and `distribution`.
44

0 commit comments

Comments
 (0)