palworth/pa_cc_setup/sentry-setup-metrics
Claude Code and agent skill by palworth/pa_cc_setup
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Setup Sentry Metrics in any project. Use when asked to add custom metrics, track counters/gauges/distributions, or instrument application performance. Supports JavaScript and Python.
Install
npx vskill@latest install palworth/pa_cc_setup/sentry-setup-metricsSKILL.md
The same SKILL.md was published earlier as palworth/pa_cc_setup/sentry-setup-metrics.
Setup Sentry Metrics
Configure Sentry's custom metrics for tracking counters, gauges, and distributions.
Invoke This Skill When
- User asks to "add Sentry metrics" or "track custom metrics"
- User wants counters, gauges, or distributions
- User asks about
Sentry.metricsorsentry_sdk.metrics
Quick Reference
| Platform | Min SDK | API | |
|---|---|---|---|
| JavaScript | 10.25.0+ | Sentry.metrics.* | |
| Python | 2.44.0+ | sentry_sdk.metrics.* |
Note: Ruby does not have metrics support.
Metric Types
| Type | Purpose | Example Use Cases | |
|---|---|---|---|
| Counter | Cumulative counts | API calls, clicks, errors | |
| Gauge | Point-in-time values | Queue depth, memory, connections | |
| Distribution | Statistical values | Response times, cart amounts |
JavaScript Setup
Metrics are enabled by default in SDK 10.25.0+.
Counter
Gauge
Distribution
Filtering (optional)
Python Setup
Metrics are enabled by default in SDK 2.44.0+.
Counter
Gauge
Distribution
Filtering (optional)
Common Units
| Category | Values | |
|---|---|---|
| Time | millisecond, second, minute, hour | |
| Size | byte, kilobyte, megabyte | |
| Currency | usd, eur, gbp | |
| Other | none, percent, ratio |
Timing Helper Pattern
JavaScript
Python
Best Practices
- Low cardinality: Avoid user IDs, request IDs in attributes
- Namespaced names:
api.request.duration, notduration - Flush on exit: Call
Sentry.flush()before process exit
Troubleshooting
| Issue | Solution | |
|---|---|---|
| Metrics not appearing | Verify SDK version, check DSN, wait for buffer flush | |
| High cardinality warning | Remove unique IDs from attributes | |
| Too many metrics | Use beforeSendMetric to filter |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude/skills/sentry-setup-metrics/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/palworth/pa_cc_setup/sentry-setup-metrics)