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

/sentry-observability

@0d57af8
Run it yourself

Integrate Sentry with your observability stack — logging, metrics, APM, and dashboards. Use when connecting Sentry to winston/pino/structlog, correlating errors with business metrics, deciding between Sentry performance and Datadog/New Relic, building Sentry Discover dashboards, or linking events to external tools via extra context. Trigger: "sentry observability", "sentry logging", "sentry metrics", "sentry grafana", "sentry datadog correlation", "sentry discover dashboard".

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesmetrics-integration.md

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

Metrics Integration Reference

Sentry Custom Metrics (SDK v8)

Four metric types available:

import * as Sentry from '@sentry/node';

// Counter — track occurrences, error rates, throughput
Sentry.metrics.increment('checkout.attempted', 1, {
  tags: { payment_provider: 'stripe', plan: 'enterprise' },
});

// Distribution — latency, response sizes (supports percentiles)
Sentry.metrics.distribution('api.response_time', responseTimeMs, {
  tags: { endpoint: '/api/orders', status_code: '200' },
  unit: 'millisecond',
});

// Gauge — current values (pool sizes, queue depth)
Sentry.metrics.gauge('db.pool.active', pool.activeCount, {
  tags: { database: 'primary' },
});

// Set — unique counts (affected users, unique errors)
Sentry.metrics.set('incident.affected_users', userId, {
  tags: { incident: 'payment-outage-2026-03' },
});

Prometheus Dual-Write

Write to both Prometheus and Sentry for infrastructure + error correlation:

import { Counter, Histogram } from 'prom-client';
import * as Sentry from '@sentry/node';

const httpErrors = new Counter({
  name: 'http_errors_total',
  help: 'HTTP errors with Sentry correlation',
  labelNames: ['method', 'path', 'status'],
});

const requestDuration = new Histogram({
  name: 'http_request_duration_seconds',
  help: 'Request duration',
  labelNames: ['method', 'path', 'status'],
  buckets: [0.01, 0.05, 0.1, 0.5, 1, 5],
});

// Middleware captures both Prometheus metrics and Sentry events
app.use((req, res, next) => {
  const end = requestDuration.startTimer();
  res.on('finish', () => {
    const labels = {
      method: req.method,
      path: req.route?.path || req.path,
      status: String(res.statusCode),
    };
    end(labels);
    if (res.statusCode >= 500) {
      httpErrors.inc(labels);
    }
  });
  next();
});

When to Use Sentry Metrics vs External Tools

Sentry Metrics Prometheus/Grafana Datadog Metrics
Error-correlated business metrics Infrastructure (CPU, memory, disk) Full-stack with APM correlation
Small metric cardinality (< 100 series) High cardinality (1000s of series) High cardinality with auto-tagging
No extra infrastructure needed Requires Prometheus server Requires Datadog agent
Integrated with Sentry alerts Grafana alerting Datadog monitors

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

    The sentry-observability skill provides legitimate integration patterns for connecting Sentry with logging stacks, metrics engines, and APM tools. It follows security best practices for credential management using environment variables and links only to reputable services or verified author resources.

  • 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
ReadWriteEditGrepBash(node:*)Bash(npx:*)Bash(pip:*)
Other metadata
tags
[
  "saas",
  "sentry",
  "observability",
  "logging",
  "metrics",
  "apm",
  "grafana",
  "opentelemetry"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-observability