Back to skills
SKILL.md
602 Optimize What You Send Ad149b4c
ASecurity```typescript Sentry.init({ dsn: process.env.SENTRY_DSN,
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add tools-only/X-Skills --skill 602-optimize-what-you-send_ad149b4c --agent claude-codeAre you the author of 602 Optimize What You Send Ad149b4c?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-602-optimize-what-you-send-ad149b4c)# Optimize What You Send
## Optimize What You Send
### Reduce Event Size
```typescript
Sentry.init({
dsn: process.env.SENTRY_DSN,
// Limit string lengths
maxValueLength: 250,
// Limit breadcrumbs
maxBreadcrumbs: 20,
// Strip large data
beforeSend(event) {
// Remove large request bodies
if (event.request?.data) {
const size = JSON.stringify(event.request.data).length;
if (size > 1000) {
event.request.data = '[TRUNCATED]';
}
}
return event;
},
});
```
### Disable Unused Features
```typescript
Sentry.init({
dsn: process.env.SENTRY_DSN,
// Disable session tracking if not needed
autoSessionTracking: false,
// Disable profiling if not needed
profilesSampleRate: 0,
// Disable replay if not needed
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 0,
});
```Files in this skill
- README.md
- skill.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.