Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: Remove metrics integration #10082

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions platform-includes/metrics/configure/javascript.astro.mdx
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
To use metrics with astro, first [manually setup up the SDK as per the Astro SDK docs](/platforms/javascript/guides/astro/manual-setup/#manual-sdk-initialization).

To configure metrics for your client-side code, add the `metricsAggregatorIntegration` to your `Sentry.init` call in your `sentry.client.config.js` file.
Metrics work out of the box by calling `Sentry.init` no further setup is required.

```JavaScript
// sentry.client.config.js
Sentry.init({
dsn: '___PUBLIC_DSN___',
integrations: [
Sentry.metrics.metricsAggregatorIntegration(),
],
});
```

To configure metrics for your server-side code, add the `metricsAggregator` experimental option to your `Sentry.init` call in your `sentry.server.config.js` file.

```JavaScript
// sentry.server.config.js
Sentry.init({
dsn: '___PUBLIC_DSN___',
_experiments: {
metricsAggregator: true,
},
});
```
5 changes: 1 addition & 4 deletions platform-includes/metrics/configure/javascript.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
To configure metrics, add the `metricsAggregatorIntegration` to your `Sentry.init` call.
Metrics work out of the box by calling `Sentry.init` no further setup is required.

```JavaScript
Sentry.init({
dsn: '___PUBLIC_DSN___',
integrations: [
Sentry.metrics.metricsAggregatorIntegration(),
],
});
```
10 changes: 1 addition & 9 deletions platform-includes/metrics/configure/javascript.nextjs.mdx
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
To configure metrics for your client-side code, add the `metricsAggregatorIntegration` to your `Sentry.init` call in your `sentry.client.config.js` file.
Metrics work out of the box by calling `Sentry.init` no further setup is required.

```JavaScript
// sentry.client.config.js
Sentry.init({
dsn: '___PUBLIC_DSN___',
integrations: [
Sentry.metrics.metricsAggregatorIntegration(),
],
});
```

To configure metrics for your server-side code, add the `metricsAggregator` experimental option to your `Sentry.init` call in your `instrumentation.(js|ts)` file.

```JavaScript
Sentry.init({
dsn: '___PUBLIC_DSN___',
_experiments: {
metricsAggregator: true,
},
});
```
10 changes: 1 addition & 9 deletions platform-includes/metrics/configure/javascript.remix.mdx
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
To configure metrics for your client-side code, add the `metricsAggregatorIntegration` to your `Sentry.init` call in your `entry.client.tsx` file.
Metrics work out of the box by calling `Sentry.init` no further setup is required.

```JavaScript
// entry.client.tsx
Sentry.init({
dsn: '___PUBLIC_DSN___',
integrations: [
Sentry.metrics.metricsAggregatorIntegration(),
],
});
```

To configure metrics for your server-side code, add the `metricsAggregator` experimental option to your `Sentry.init` call in your `entry.server.tsx` file.

```JavaScript
// entry.server.tsx
Sentry.init({
dsn: '___PUBLIC_DSN___',
_experiments: {
metricsAggregator: true,
},
});
```
10 changes: 1 addition & 9 deletions platform-includes/metrics/configure/javascript.sveltekit.mdx
Original file line number Diff line number Diff line change
@@ -1,23 +1,15 @@
To configure metrics for your client-side code, add the `metricsAggregatorIntegration` to your `Sentry.init` call in your `hooks.client.js` file.
Metrics work out of the box by calling `Sentry.init` no further setup is required.

```JavaScript
// hooks.client.js
Sentry.init({
dsn: '___PUBLIC_DSN___',
integrations: [
Sentry.metrics.metricsAggregatorIntegration(),
],
});
```

To configure metrics for your server-side code, add the `metricsAggregator` experimental option to your `Sentry.init` call in your `hooks.server.js` file.

```JavaScript
// hooks.server.js
Sentry.init({
dsn: '___PUBLIC_DSN___',
_experiments: {
metricsAggregator: true,
},
});
```
Loading