palworth/pa_cc_setup/sentry-setup-tracing

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 Tracing (Performance Monitoring) in any project. Use when asked to enable tracing, track transactions/spans, measure latency, or add performance monitoring. Supports JavaScript, Python, and Ruby.

Install

npx vskill@latest install palworth/pa_cc_setup/sentry-setup-tracing

SKILL.md

The same SKILL.md was published earlier as palworth/pa_cc_setup/sentry-setup-tracing.

Setup Sentry Tracing

Configure Sentry's performance monitoring to track transactions and spans.

Invoke This Skill When

  • User asks to "enable tracing" or "add performance monitoring"
  • User wants to track API response times, page loads, or latency
  • User asks about tracesSampleRate or custom spans

Quick Reference

PlatformEnableCustom Span
JS/BrowsertracesSampleRate + browserTracingIntegration()Sentry.startSpan()
Next.jstracesSampleRate (auto-integrated)Sentry.startSpan()
Node.jstracesSampleRateSentry.startSpan()
Pythontraces_sample_rate@sentry_sdk.trace or start_span()
Rubytraces_sample_ratestart_span()

JavaScript Setup

Enable tracing
javascript
Sentry.init({
dsn: "YOUR_DSN",
tracesSampleRate: 1.0, // 1.0 = 100%, lower for production
integrations: [Sentry.browserTracingIntegration()], // Browser/React only
tracePropagationTargets: ["localhost", /^https:\/\/api\./],
});
Custom spans
javascript
// Async operation
const result = await Sentry.startSpan(
{ name: "fetch-user", op: "http.client" },
async () => {
return await fetch("/api/user").then(r => r.json());
}
);
// Nested spans
await Sentry.startSpan({ name: "checkout", op: "transaction" }, async () => {
await Sentry.startSpan({ name: "validate", op: "validation" }, validateCart);
await Sentry.startSpan({ name: "payment", op: "payment" }, processPayment);
});
Dynamic sampling
javascript
tracesSampler: ({ name, parentSampled }) => {
if (name.includes("healthcheck")) return 0;
if (name.includes("checkout")) return 1.0;
if (parentSampled !== undefined) return parentSampled;
return 0.1;
},

Python Setup

Enable tracing
python
sentry_sdk.init(
dsn="YOUR_DSN",
traces_sample_rate=1.0,
)
Custom spans
python
# Decorator
@sentry_sdk.trace
def expensive_function():
return do_work()
# Context manager
with sentry_sdk.start_span(name="process-order", op="task") as span:
span.set_data("order.id", order_id)
process(order_id)
Dynamic sampling
python
def traces_sampler(ctx):
name = ctx.get("transaction_context", {}).get("name", "")
if "healthcheck" in name: return 0
if "checkout" in name: return 1.0
return 0.1
sentry_sdk.init(dsn="YOUR_DSN", traces_sampler=traces_sampler)

Ruby Setup

ruby
Sentry.init do |config|
config.dsn = "YOUR_DSN"
config.traces_sample_rate = 1.0
end

Common Operation Types

op ValueUse Case
http.clientOutgoing HTTP
http.serverIncoming HTTP
db / db.queryDatabase
cacheCache operations
taskBackground jobs
functionFunction calls

Sampling Recommendations

TrafficRate
Development1.0
Low (<1K req/min)0.5 - 1.0
Medium (1K-10K)0.1 - 0.5
High (>10K)0.01 - 0.1

Distributed Tracing

Configure tracePropagationTargets to send trace headers to your APIs:

javascript
tracePropagationTargets: ["localhost", "https://api.yourapp.com"],

For Next.js 14+ App Router, add to root layout:

typescript
export async function generateMetadata() {
return { other: { ...Sentry.getTraceData() } };
}

Troubleshooting

IssueSolution
Transactions not appearingCheck tracesSampleRate > 0, verify DSN
Browser traces missingAdd browserTracingIntegration()
Distributed traces disconnectedCheck tracePropagationTargets, CORS headers
Too many transactionsLower sample rate, use tracesSampler to filter

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/palworth/pa_cc_setup/sentry-setup-tracing/badge)](https://verified-skill.com/skills/palworth/pa_cc_setup/sentry-setup-tracing)

Something wrong with this skill or its page? Tell us.