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

/sentry-advanced-troubleshooting

@0d57af8
Run it yourself

Advanced Sentry troubleshooting for complex SDK issues, silent event drops, source map failures, distributed tracing gaps, and SDK conflicts. Use when events silently disappear, source maps fail to resolve, traces break across service boundaries, or the SDK conflicts with other libraries like OpenTelemetry or winston. Trigger with phrases like "sentry events missing", "sentry source maps broken", "sentry debug", "sentry not capturing errors", "sentry tracing gaps", "sentry memory leak", "sentry sdk conflict".

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesevents-not-appearing.md

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

Events Not Appearing

Events Not Appearing

Check 1: SDK Initialization

// Verify SDK is initialized
import * as Sentry from '@sentry/node';

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  debug: true, // Enable debug logging
});

// Check if client exists
const client = Sentry.getCurrentHub().getClient();
console.log('Sentry client initialized:', !!client);
console.log('DSN:', client?.getDsn()?.toString());

Check 2: Network Issues

// Test network connectivity
Sentry.init({
  dsn: process.env.SENTRY_DSN,

  // Add transport debugging
  beforeSend(event) {
    console.log('Sending event:', event.event_id);
    return event;
  },

  // Capture transport errors
  transport: (options) => {
    const transport = Sentry.makeNodeTransport(options);
    return {
      ...transport,
      send: async (request) => {
        try {
          const result = await transport.send(request);
          console.log('Transport success');
          return result;
        } catch (error) {
          console.error('Transport error:', error);
          throw error;
        }
      },
    };
  },
});

Check 3: Sampling Configuration

// Verify sample rates
Sentry.init({
  dsn: process.env.SENTRY_DSN,

  // Check these aren't too low
  sampleRate: 1.0, // 100% of errors (for debugging)
  tracesSampleRate: 1.0, // 100% of transactions

  // Check sampler isn't dropping events
  tracesSampler: (ctx) => {
    console.log('Sampling context:', ctx);
    return 1.0; // Force sampling for debug
  },
});

Check 4: beforeSend Filtering

// Temporarily disable filtering
Sentry.init({
  dsn: process.env.SENTRY_DSN,

  beforeSend(event, hint) {
    console.log('beforeSend called:', event.message);
    // Return event always (don't filter during debug)
    return event;
  },
});

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

    The skill provides advanced troubleshooting tools and diagnostic scripts for Sentry SDKs. It includes systematic checks for dropped events, source map failures, and network connectivity issues using official Sentry tools and well-known services. No security issues 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 10 allowed tools
ReadWriteEditGrepBash(node:*)Bash(npm:*)Bash(npx:*)Bash(curl:*)Bash(sentry-cli:*)Bash(dig:*)
Other metadata
tags
[
  "saas",
  "sentry",
  "debugging",
  "troubleshooting",
  "source-maps",
  "distributed-tracing",
  "sdk-conflicts"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-advanced-troubleshooting