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.

referencesmobile-architecture.md

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

Mobile Architecture (React Native) — Sentry Deep Dive

Setup with @sentry/react-native

// App.tsx — initialize before any other code
import * as Sentry from '@sentry/react-native';

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  environment: __DEV__ ? 'development' : 'production',
  tracesSampleRate: 0.2,

  integrations: [
    Sentry.reactNativeTracingIntegration({
      routingInstrumentation:
        Sentry.reactNavigationIntegration(),  // React Navigation
    }),
  ],

  // Connect mobile traces to backend API
  tracePropagationTargets: [
    /^https:\/\/api\.yourapp\.com/,
  ],

  // Capture native crashes (iOS + Android)
  enableNativeCrashHandling: true,
  enableAutoSessionTracking: true,
  attachScreenshot: true,                // attach screenshot on crash
  attachViewHierarchy: true,             // attach view tree on crash
});

// Wrap root component
export default Sentry.wrap(App);

Source Maps and Debug Symbols

Upload source maps and dSYMs in CI for readable stack traces:

# JavaScript source maps
npx sentry-cli sourcemaps upload \
  --release 1.0.0 \
  --dist 1 \
  ./dist

# iOS dSYMs
npx sentry-cli upload-dif \
  --include-sources \
  ./ios/build/Build/Products/Release-iphoneos

# Android ProGuard/R8 mappings
npx sentry-cli upload-dif \
  ./android/app/build/outputs/mapping/release/mapping.txt

Navigation Instrumentation

Track screen transitions as spans:

import { NavigationContainer } from '@react-navigation/native';
import * as Sentry from '@sentry/react-native';

const routingIntegration = Sentry.reactNavigationIntegration();

function App() {
  const navigation = React.useRef(null);

  return (
    <NavigationContainer
      ref={navigation}
      onReady={() => routingIntegration.registerNavigationContainer(navigation)}
    >
      {/* screens */}
    </NavigationContainer>
  );
}

Native Crash Reporting

Sentry React Native captures both JavaScript and native crashes:

  • JavaScript errors: Caught by the JS error handler, sent with full JS stack trace
  • iOS crashes: Native crash handler captures Mach exceptions and POSIX signals
  • Android crashes: Native crash handler captures JVM and NDK crashes
  • ANR detection: Automatic detection of Application Not Responding events

All crash types are unified in the same Sentry project with proper symbolication when source maps/dSYMs are uploaded.


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