Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
brianlovin avatar

Sentry

  • 10 installs
  • 356 repo stars
  • Updated March 25, 2026
  • brianlovin/agent-config

This is a copy of sentry by brianlovin - installs and ranking accrue to the original listing.

sentry is a Claude skill documenting Sentry error monitoring and performance tracing patterns for Next.js applications.

About

sentry is a guidance skill describing how to instrument a Next.js application with Sentry for error monitoring and performance tracing. It shows capturing exceptions with Sentry.captureException, creating spans with Sentry.startSpan for UI actions and API calls, configuring the client, server, and edge init files, and using structured logging. Developers use it to add consistent Sentry instrumentation to their code.

  • Documents Sentry error monitoring and performance tracing patterns for Next.js apps
  • Shows captureException in try/catch and startSpan for UI clicks and API calls
  • Covers client/server/edge config files and structured logging with the Sentry logger

Sentry by the numbers

  • 10 all-time installs (skills.sh)
  • Data as of Aug 1, 2026 (Skillselion catalog sync)
At a glance

sentry capabilities & compatibility

Skill is free; requires a Sentry account and DSN (NEXT_PUBLIC_SENTRY_DSN)

Capabilities
error monitoring · performance tracing · structured logging
Works with
sentry
Use cases
debugging
Pricing
Bring your own API key
From the docs

What sentry says it does

Guidelines for using Sentry for error monitoring and performance tracing.
SKILL.md
Use `Sentry.captureException(error)` in try/catch blocks:
SKILL.md
Create spans for meaningful actions like button clicks, API calls, and function calls.
SKILL.md
npx skills add https://github.com/brianlovin/agent-config --skill sentry

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs10
repo stars356
Last updatedMarch 25, 2026
Repositorybrianlovin/agent-config

What it does

Instrument a Next.js app with Sentry for error capture, performance spans, and structured logging.

Who is it for?

Adding consistent Sentry instrumentation to a Next.js app

When should I use this skill?

You are instrumenting a Next.js app with Sentry for errors, tracing, or logging

What you get

Exceptions captured, meaningful spans created, and structured logging wired via @sentry/nextjs.

  • Sentry-instrumented Next.js code
  • Configured init files

Files

SKILL.mdMarkdownGitHub ↗

Sentry Integration

Guidelines for using Sentry for error monitoring and performance tracing.

Exception Catching

Use Sentry.captureException(error) in try/catch blocks:

try {
  await riskyOperation();
} catch (error) {
  Sentry.captureException(error);
  throw error;
}

Performance Tracing

Create spans for meaningful actions like button clicks, API calls, and function calls.

UI Actions

function handleClick() {
  Sentry.startSpan(
    { op: "ui.click", name: "Submit Form" },
    (span) => {
      span.setAttribute("formId", formId);
      submitForm();
    }
  );
}

API Calls

async function fetchData(id) {
  return Sentry.startSpan(
    { op: "http.client", name: `GET /api/items/${id}` },
    async () => {
      const response = await fetch(`/api/items/${id}`);
      return response.json();
    }
  );
}

Configuration (Next.js)

Sentry initialization files:

  • sentry.client.config.ts - Client-side
  • sentry.server.config.ts - Server-side
  • sentry.edge.config.ts - Edge runtime

Import with import * as Sentry from "@sentry/nextjs" - no need to initialize in other files.

Basic Setup

import * as Sentry from "@sentry/nextjs";

Sentry.init({
  dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
  enableLogs: true,
});

With Console Logging

Sentry.init({
  dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
  integrations: [
    Sentry.consoleLoggingIntegration({ levels: ["log", "warn", "error"] }),
  ],
});

Structured Logging

Use logger.fmt for template literals with variables:

const { logger } = Sentry;

logger.trace("Starting connection", { database: "users" });
logger.debug(logger.fmt`Cache miss for: ${userId}`);
logger.info("Updated profile", { profileId: 345 });
logger.warn("Rate limit reached", { endpoint: "/api/data" });
logger.error("Payment failed", { orderId: "order_123" });
logger.fatal("Connection pool exhausted", { activeConnections: 100 });

Related skills

FAQ

How do I capture errors?

Use `Sentry.captureException(error)` in try/catch blocks and rethrow.

How do I trace performance?

Wrap meaningful actions in `Sentry.startSpan`, for example op 'ui.click' or 'http.client'.

Which config files does Next.js use?

sentry.client.config.ts, sentry.server.config.ts, and sentry.edge.config.ts.

Debuggingmonitoring

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.