Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/sentry-architecture-variants

@0d57af8
Run it yourself

Configure Sentry error tracking and performance monitoring for different application architectures. Use when setting up Sentry for monoliths, microservices, serverless functions, event-driven systems, frontend SPAs, mobile apps, or hybrid deployments. Trigger: "sentry monolith setup", "sentry microservices tracing", "sentry serverless lambda", "sentry event-driven kafka", "sentry react native", "sentry architecture pattern".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/sentry-architecture-variants

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesmonolith-architecture.md

≈539 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Monolith Architecture — Sentry Deep Dive

Project Layout

Organization: mycompany
└── Project: monolith-app
    └── Single DSN for entire application

One project, one DSN. Use tags to separate modules and route alerts to the right team.

Configuration

// instrument.mjs — load via: node --import ./instrument.mjs app.js
import * as Sentry from '@sentry/node';

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  environment: process.env.NODE_ENV,
  release: process.env.APP_VERSION,
  tracesSampleRate: 0.1,

  initialScope: {
    tags: { app: 'monolith' },
  },
});

Module Tagging Pattern

// Tag errors by module for per-team filtering
function captureModuleError(module: string, error: Error) {
  Sentry.withScope((scope) => {
    scope.setTag('module', module);
    scope.setTag('team', getTeamForModule(module));
    Sentry.captureException(error);
  });
}

// Module-based breadcrumbs
function addModuleBreadcrumb(module: string, message: string, data?: object) {
  Sentry.addBreadcrumb({
    category: module,
    message,
    data,
    level: 'info',
  });
}

// Usage
addModuleBreadcrumb('auth', 'Login attempt', { method: 'oauth' });
captureModuleError('auth', new Error('Token expired'));
captureModuleError('billing', new Error('Payment gateway timeout'));

Dashboard Ownership Rules

# In Sentry project settings → Issue Owners:
tags.module:auth         → #platform-team
tags.module:billing      → #payments-team
tags.module:inventory    → #supply-chain-team
tags.module:notifications → #engagement-team

# Filter issues by module:
# Issues → Search: tags.module:auth
# Performance → Search: tags.module:billing

When to Graduate from Monolith Pattern

Move to project-per-service when:

  • Module count exceeds 50 (tag cardinality limit)
  • Teams need separate DSNs for access control
  • Deploy cadence differs per module (independent releases)
  • Performance budget isolation needed per team

Tons of Skills by Intent Solutions | jeremylongshore.com

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides architectural guidance and code snippets for integrating Sentry error tracking and performance monitoring into various application types. No security issues or malicious patterns were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 7 allowed tools
ReadWriteEditGrepGlobBash(node:*)Bash(npx:*)
Other metadata
tags
[
  "saas",
  "sentry",
  "serverless",
  "microservices",
  "architecture",
  "distributed-tracing",
  "lambda",
  "spa",
  "mobile"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-architecture-variants