Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 659 Bytes

File metadata and controls

25 lines (22 loc) · 659 Bytes

To use metrics with astro, first manually setup up the SDK as per the Astro SDK docs.

Metrics work out of the box by calling Sentry.init, no further setup is required.

// sentry.client.config.js
Sentry.init({
  dsn: '___PUBLIC_DSN___',
  // Only needed for SDK versions < 8.0.0
  // integrations: [
  //   Sentry.metrics.metricsAggregatorIntegration(),
  // ],
});
// sentry.server.config.js
Sentry.init({
  dsn: '___PUBLIC_DSN___',
  // Only needed for SDK versions < 8.0.0
  // _experiments: {
  //   metricsAggregator: true,
  // },
});