sentry-svelte-sdk

Warn

Audited by Runlayer on Mar 3, 2026

Risk Level: MEDIUM
Scan Summary
Max Score
89%
Files
5
Flagged
5
Chunks
10
Flagged Files (5)
sentry-svelte-sdk/references/logging.mdMEDIUM
88.9%

Malicious tool definition detected

Description: + `instrumentation.server.ts` | | Server-side logging | ❌ N/A | ✅ Full — `Sentry.logger.*` in any server code | | Isolation scope per request | ❌ N/A | ✅ Set in `hooks.server.ts` for per-request context | | `consoleLoggingIntegration` | Single init | Both client and server inits | | `consola` reporter | N/A (client-only) | Server hooks or load functions | | Trace correlation | Client spans only | Client + server spans | --- ## Best Practices - Add `enableLogs: true` to **both** `hoo

sentry-svelte-sdk/references/session-replay.mdMEDIUM
85.9%

Tool passed security scan

Malicious tool definition detected

--- ## Performance Considerations - Compression runs in a **Web Worker** — minimal main-thread impact - `mutationLimit` protects against DOM-heavy frameworks that trigger thousands of mutations - Network body capture is opt-in per URL — no performance cost without `networkDetailAllowUrls` - Lazy loading (`Sentry.addIntegration()`) reduces initial bundle size by ~50KB gzipped - "Errors-only" strategy (`replaysSessionSampleRate: 0`) has near-zero overhead when no error occurs --- ## Best Practices

sentry-svelte-sdk/references/error-monitoring.mdLOW
70.0%

Tool passed security scan

Malicious tool definition detected

Tool: sentry-svelte-sdk/references/error-monitoring.md [2/2] Description: from "@sentry/sveltekit"; </script> <svelte:boundary onerror={(error, reset) => { Sentry.captureException(error); }}> <RiskyComponent /> {#snippet failed(error, reset)} <p>Something went wrong.</p> <button onclick={reset}>Try again</button> {/snippet} </svelte:boundary> ``` **Tips:** - `onerror` fires synchronously before Svelte tears down the subtree — safe to call `captureException` here - `reset` re-mounts the boundary

sentry-svelte-sdk/references/tracing.mdLOW
69.7%

Tool passed security scan

sentry-svelte-sdk/SKILL.mdLOW
60.2%

Tool passed security scan

Audit Metadata
Max File Score
89%
Classification
UNKNOWN_SERVER
Files Scanned
5
Files Flagged
5
Chunks Analyzed
10
Analyzed
Mar 3, 2026, 01:45 PM
Security Audit — runlayer — sentry-svelte-sdk