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.

referenceshybrid-architecture.md

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

Hybrid Architecture — Sentry Deep Dive

Project Layout

Organization: mycompany
├── Project: frontend-web        (@sentry/react)
├── Project: mobile-app          (@sentry/react-native)
├── Project: api-gateway         (@sentry/node)
├── Project: payment-service     (@sentry/node)
├── Project: notification-worker (@sentry/node)
└── Project: lambda-functions    (@sentry/aws-serverless)

End-to-End Trace Flow

User clicks "Place Order" in browser
  │
  ├── @sentry/react: button.click span (transaction start)
  │     └── fetch('/api/orders') adds sentry-trace + baggage headers
  │
  ├── api-gateway (@sentry/node): auto-continues trace from headers
  │     ├── calls payment-service via HTTP (headers auto-propagated)
  │     └── publishes to Kafka (headers injected manually)
  │
  ├── payment-service (@sentry/node): auto-continues from HTTP headers
  │     └── calls Stripe API (outbound HTTP traced)
  │
  └── notification-worker (@sentry/node): continues from Kafka headers
        └── sends email via SES (outbound HTTP traced)

All spans share a single trace_id. Sentry Trace View renders the full waterfall.

Critical Configuration: tracePropagationTargets

The browser/mobile SDK will NOT attach trace headers unless the API domain matches tracePropagationTargets:

// Frontend — MUST match your API domain
Sentry.init({
  dsn: process.env.REACT_APP_SENTRY_DSN,
  integrations: [Sentry.browserTracingIntegration()],
  tracePropagationTargets: [
    'localhost',
    /^https:\/\/api\.yourapp\.com/,
  ],
});

Without this, the browser-to-API boundary breaks the trace chain.

Cross-Platform Correlation

For debugging, correlate traces across platforms using custom tags:

// Backend: tag with the frontend trace origin
app.use((req, res, next) => {
  const sentryTrace = req.headers['sentry-trace'];
  if (sentryTrace) {
    Sentry.setTag('trace_origin', 'browser');
  }
  next();
});

// Search in Sentry: tags.trace_origin:browser
// Shows all backend issues triggered by frontend user actions

Migration Path: Monolith → Hybrid

When extracting services from a monolith:

  1. Keep the monolith's Sentry project for remaining modules
  2. Create new project for each extracted service
  3. Add distributed tracing headers between monolith and new services
  4. Tag the monolith with migration_status: in_progress
  5. Remove module tags as modules are fully extracted
// Monolith calling new extracted service
async function callExtractedService(path: string, data: object) {
  return Sentry.startSpan(
    { name: `extracted.${path}`, op: 'http.client' },
    async () => {
      // SDK auto-adds sentry-trace + baggage headers
      return fetch(`https://new-service.internal${path}`, {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify(data),
      });
    }
  );
}

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