Application monitoring
Sentry’s Application Monitoring integrates easily with your Vercel workflow, helping you address errors and performance bottlenecks before they impact your users.
Unified Error and Performance Monitoring: Gain a centralized view of all errors and performance issues.
Distributed Tracing: Trace requests across services to pinpoint the root cause of slow API calls and other performance bottlenecks.
Session Replay: Understand the real-world impact of errors without reproducing them, talking to customers, or exposing sensitive data.
See Vercel runtime and application logs in context—connected to your errors, traces, and replays in Sentry. Understand what happened without switching tools.
Start by connecting your Sentry project to your Vercel project.
Make sure to set your Sentry password by visiting the link in your welcome email from Sentry. If you haven't received it, ask your colleague to send you a member invitation from the Sentry UI.
Configure your app automatically by running the Sentry wizard in the root of your project:
npx @sentry/wizard@latest -i nextjs --saas --org {{SENTRY_ORG}} --project {{SENTRY_PROJECT}} --coming-from vercelStart your development server and visit /sentry-example-page if you have set it up. Click the button to trigger a test error.
Or, trigger a sample error by calling a function that does not exist somewhere in your application.
myUndefinedFunction();
If you see an issue in your Sentry dashboard, you have successfully set up Sentry.
Start by connecting your Sentry project to your Vercel project.
Make sure to set your Sentry password by visiting the link in your welcome email from Sentry. If you haven't received it, ask your colleague to send you a member invitation from the Sentry UI.
Add the Sentry SDK as a dependency using npm or yarn:
npm install --save @sentry/react// or yarn add @sentry/reactInitialize Sentry as early as possible in your application's lifecycle.
import * as Sentry from "@sentry/react";
Sentry.init({ dsn: "{{SENTRY_DSN}}"});
const container = document.getElementById("app");const root = createRoot(container);root.render(<App />);Automatically upload your source maps to enable readable stack traces for Errors.
npx @sentry/wizard@latest -i sourcemaps --saas --coming-from vercelThis snippet contains an intentional error and can be used as a test to make sure that everything's working as expected.
return <button onClick={() => {throw new Error("This is your first error!");}}>Break the world</button>;Start by connecting your Sentry project to your Vercel project.
Make sure to set your Sentry password by visiting the link in your welcome email from Sentry. If you haven't received it, ask your colleague to send you a member invitation from the Sentry UI.
Configure your app automatically by running the Sentry wizard in the root of your project:
npx @sentry/wizard@latest -i sveltekit --saas --org {{SENTRY_ORG}} --project {{SENTRY_PROJECT}} --coming-from vercelStart your development server and visit /sentry-example-page if you have set it up. Click the button to trigger a test error.
Or, trigger a sample error by calling a function that does not exist somewhere in your application.
myUndefinedFunction();
If you see an issue in your Sentry dashboard, you have successfully set up Sentry.
Start by connecting your Sentry project to your Vercel project.
Make sure to set your Sentry password by visiting the link in your welcome email from Sentry. If you haven't received it, ask your colleague to send you a member invitation from the Sentry UI.
Configure your app automatically by running the Sentry wizard in the root of your project:
npx @sentry/wizard@latest -i nuxt --saas --org {{SENTRY_ORG}} --project {{SENTRY_PROJECT}} --coming-from vercelStart your development server and visit /sentry-example-page if you have set it up. Click the button to trigger a test error.
Or, throw an error in a simple vue component.
<script setup> const triggerError = () => { throw new Error("Nuxt Button Error"); };</script>
<template> <button id="errorBtn" @click="triggerError">Trigger Error</button></template>If you see an issue in your Sentry dashboard, you have successfully set up Sentry.
Start by connecting your Sentry project to your Vercel project.
Make sure to set your Sentry password by visiting the link in your welcome email from Sentry. If you haven't received it, ask your colleague to send you a member invitation from the Sentry UI.
Install the @sentry/astro package with the astro CLI:
npx astro add @sentry/astroOpen up your astro.config.mjs file and configure the DSN, and any other settings you need:
import { defineConfig } from "astro/config";import sentry from "@sentry/astro";
export default defineConfig({ integrations: [ sentry({ dsn: "{{SENTRY_DSN}}", tracesSampleRate: 0, replaysSessionSampleRate: 0, replaysOnErrorSampleRate: 0, sourceMapsUploadOptions: { project: "javascript-astro", authToken: process.env.SENTRY_AUTH_TOKEN, }, }), ],});Throw a test error anywhere in your app, so you can test that everything is working:
<!-- your-page.astro -->------<button id="error-button">Throw test error</button><script> function handleClick () { throw new Error('This is a test error'); } document.querySelector("#error-button").addEventListener("click", handleClick);</script>If you see an issue in your Sentry dashboard, you have successfully set up Sentry.
Start by connecting your Sentry project to your Vercel project.
Make sure to set your Sentry password by visiting the link in your welcome email from Sentry. If you haven't received it, ask your colleague to send you a member invitation from the Sentry UI.
Check out installation instructions for your platform in Sentry Docs: https://docs.sentry.io/