-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: Remove metrics integration (#10082)
- Loading branch information
Showing
5 changed files
with
5 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), | ||
], | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
10
platform-includes/metrics/configure/javascript.sveltekit.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}, | ||
}); | ||
``` |