Agent skill · data analytics · jeremylongshore

sentry-performance-tracing

Set up performance monitoring and distributed tracing with Sentry.

Why this skill is useful

Provides specific configuration patterns and code snippets for Sentry performance monitoring that the AI wouldn't reliably generate on its own.

What it needs

Requires @sentry/node, sentry-sdk installed locally. Requires sentry account access. About 7k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Sentry Performance Tracing Overview Sentry performance monitoring captures distributed traces across your application stack, measuring latency, identifying bottlenecks, and tracking Web Vitals. The v8 SDK uses a span-based API where Sentry.startSpan() replaces the deprecated startTransaction(). Auto-instrumentation covers HTTP, database queries, and framework routes out of the box. Manual spans let you measure business-critical operations. Combined with profiling (profilesSampleRate), you get function-level flamegraphs attached to traces. Prerequisites Sentry SDK v8+ installed (@sentry/node >= 8.0.0 or sentry-sdk >= 2.0.0) tracesSampleRate > 0 set in Sentry.init() — performance data is not collected at zero Performance monitoring enabled in your Sentry project settings (Settings > Performance) For distributed tracing: all participating services must have Sentry SDK initialized Instructions Step 1 — Configure Tracing and Profiling in SDK Init Set tracesSampleRate to control what percentage of requests generate traces. Use tracesSampler for dynamic, per-endpoint sampling. Add profilesSampleRate to attach function-level flamegraphs to sampled transactions. TypeScript (@sentry/node): Python (sentry-sdk): Key decisions: Start at tracesSampleRate: 0.2 and adjust based on volume and budget tracesSampler takes priority when defined — tracesSampleRate becomes the fallback profilesSampleRate is relative to sampled transactions (0.1 means 10% of the 20% that are sampled) Return 0 from tracesSampler to explicitly drop a transaction, not false Step 2 — Create Custom Spans for Business Logic Auto-instrumentation covers HTTP and database calls, but business-critical operations need manual spans. The v8 API provides three span creation methods for different use cases. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/sentry-performance-tracing

View the source on GitHub

Browse the @skills marketplace