sentry-setup-metrics

Configure Sentry custom metrics for JavaScript and Python applications.

10|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/troykelly/codex-skills --skill sentry-setup-metrics-troykelly
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-setup-metrics
Source: https://github.com/troykelly/codex-skills/tree/main/external/skills/sentry-setup-metrics
Command: npx skills add https://github.com/troykelly/codex-skills --skill sentry-setup-metrics-troykelly

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you integrate Sentry's custom metrics feature into your application, enabling you to track key performance indicators, business metrics, and application health.

Core Features & Use Cases

  • Metric Configuration: Set up counters, gauges, and distributions for various data types.
  • Platform Support: Works with JavaScript/TypeScript (Node.js, React, Next.js) and Python (Django, Flask, FastAPI).
  • Use Case: You want to track the number of successful user sign-ups, the current queue depth of background jobs, and the response time of your API endpoints. This Skill will guide you through instrumenting your code to send these metrics to Sentry.

Quick Start

Use the sentry-setup-metrics skill to add Sentry metrics to your project.

Frequently Asked Questions about sentry-setup-metrics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I instrument my application to send custom metrics to Sentry?

To instrument your app with Sentry custom metrics, configure counters, gauges, and distributions in your code to track performance and business KPIs. This Skill guides you through the setup for JavaScript and Python applications.

What types of Sentry metrics can I track for my application performance?

Sentry custom metrics support tracking counters, gauges, and distributions. You can monitor application performance metrics like API response times, queue depths, and business KPIs such as user sign-ups.

Does Sentry custom metrics instrumentation work with Python and JavaScript frameworks?

Yes, Sentry custom metrics instrumentation works with JavaScript and Python applications, including Node.js, React, Next.js, Django, Flask, and FastAPI. It requires Sentry SDK versions 10.25.0+ for JavaScript and 2.44.0+ for Python.

What Sentry SDK versions do I need to set up custom metrics tracking?

Setting up Sentry custom metrics tracking requires Sentry SDK version 10.25.0 or higher for JavaScript applications, and version 2.44.0 or higher for Python applications to ensure proper instrumentation support.

When should I use Sentry distributions versus gauges for application monitoring?

Use Sentry distributions to track metric spread like API response times, and gauges to track current values like background job queue depth. Counters track cumulative events like successful user sign-ups.

Can I track business KPIs alongside application performance metrics in Sentry?

Yes, you can track business KPIs alongside application performance metrics in Sentry by instrumenting your code with custom counters, gauges, and distributions to monitor overall application health and business value.