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.

referencesapm-tool-integration.md

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

APM Tool Integration Reference

Datadog + Sentry Cross-Linking

Add Datadog trace IDs to Sentry events so you can click from a Sentry error directly to the Datadog trace:

import tracer from 'dd-trace';
import * as Sentry from '@sentry/node';

// dd-trace MUST be initialized before @sentry/node
tracer.init();

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  beforeSend(event) {
    const span = tracer.scope().active();
    if (span) {
      const traceId = span.context().toTraceId();
      const spanId = span.context().toSpanId();
      event.tags = {
        ...event.tags,
        'dd.trace_id': traceId,
        'dd.span_id': spanId,
      };
      event.contexts = {
        ...event.contexts,
        datadog: {
          trace_url: `https://app.datadoghq.com/apm/trace/${traceId}`,
          trace_id: traceId,
          span_id: spanId,
        },
      };
    }
    return event;
  },
});

New Relic + Sentry Cross-Linking

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

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  beforeSend(event) {
    const txn = newrelic.getTransaction();
    const traceId = txn?.traceId;
    if (traceId) {
      event.tags = {
        ...event.tags,
        'newrelic.trace_id': traceId,
      };
      event.contexts = {
        ...event.contexts,
        newrelic: {
          trace_url: `https://one.newrelic.com/distributed-tracing?traceId=${traceId}`,
          trace_id: traceId,
        },
      };
    }
    return event;
  },
});

When Sentry Performance Is Enough

Scenario Recommendation
< 5 services, frontend + backend Sentry Performance only
Need infrastructure metrics (CPU, mem) Add Datadog/New Relic agent
10+ microservices with complex traces Datadog/New Relic for tracing, Sentry for errors
Budget-constrained, error-focused Sentry Performance only
Existing Datadog/NR investment Keep both, cross-link via beforeSend

OpenTelemetry Bridge (SDK v8)

Sentry SDK v8 uses OpenTelemetry internally. Custom OTel spans are visible in Sentry automatically:

import { trace } from '@opentelemetry/api';

const tracer = trace.getTracer('my-app');
const span = tracer.startSpan('custom-operation');
// This span appears in Sentry — no extra configuration
span.end();

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